[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is there any example where it causes troubles? -- nosy: +serhiy.storchaka ___ Python tracker ___ __

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-17 Thread Jack DeVries
Change by Jack DeVries : -- nosy: +jack__d ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue44664] builtins.chr and the 'c' format flag raise different errors

2021-07-17 Thread Dan Snider
New submission from Dan Snider : 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? -- mes