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 <rep...@bugs.python.org> <http://bugs.python.org/issue23466> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com