Sergey B Kirpichev <skirpic...@gmail.com> added the comment:
On Fri, May 28, 2021 at 06:48:14AM +0000, Mark Dickinson wrote: > So yes please to the PR. There should be tests that check that only the > underscore rules allowed by `int` and the others are supported: e.g., > `Fraction("1__2")`, and `Fraction("1_2_")` should be errors. Ok, I did. In the initial version I catch int()'s exceptions to return a correct exception details. Maybe it's better to fix the regexp instead (don't match "wrong" strings). I think this might be more complicated for readers... ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue44258> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com