[issue15988] Inconsistency in overflow error messages of integer argument

Terry J. Reedy report at bugs.python.org
Sat Sep 22 03:40:54 CEST 2012


Terry J. Reedy added the comment:

The reason for the different messages is clear -- there are different internal tests (I presume in different functions), each of which raises its own error. What do you propose to change?

The only thing I can imagine is that when the bytes converter calls the Python int to c long function, it somehow intercepts the error return and rewrites the message for consistency. Is this your proposal?

----------
nosy: +terry.reedy

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue15988>
_______________________________________


More information about the Python-bugs-list mailing list