New submission from Dan Snider <mr.assume.a...@gmail.com>:
chr (or anything else which calls `PyUnicode_FromOrdinal`) raises ValueError if its argument falls outside the range of valid Unicode code points, while `PyUnicode_FromFormat` raises OverflowError. Shouldn't the latter raise ValueError as well? ---------- messages: 397735 nosy: bup priority: normal severity: normal status: open title: builtins.chr and the 'c' format flag raise different errors type: behavior _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44664> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com