[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers
Serhiy Storchaka
report at bugs.python.org
Mon Feb 16 22:50:29 CET 2015
Serhiy Storchaka added the comment:
Here is a patch.
The difference between string and bytes formatting is that %c with out of the range integer raises OverflowError for str and TypeError for bytes. May be ValueError is more suitable in both cases.
----------
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file38156/bytes_int_format.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23466>
_______________________________________
More information about the Python-bugs-list
mailing list