[Python-Dev] A type of out-of-range exception for %c (original) (raw)

Łukasz Langa lukasz at langa.pl
Sun Jun 23 23:27:27 CEST 2013


On 23 cze 2013, at 21:07, Antoine Pitrou <solipsis at pitrou.net> wrote:

The most annoying thing here is that OverflowError doesn't subclass ValueError.

My intuition would rather make OverflowError subclass RuntimeError. Am I wrong?

That means I support Serhiy's point that %c would be less surprising raising a ValueError. Backwards compatibility is an unfortunate blocker here, I suppose.

-- Best regards, Łukasz Langa

WWW: http://lukasz.langa.pl/ Twitter: @llanga IRC: ambv on #python-dev

-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20130623/e74f04b5/attachment.html>



More information about the Python-Dev mailing list