Serhiy Storchaka added the comment: Here is a patch that makes bytes formatting raise an OverflowError if integer argument of %c is out of range.
---------- Added file: http://bugs.python.org/file38812/bytes_format_overflow.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