Mark Dickinson <dicki...@gmail.com> added the comment:

+1 to the idea: `Decimal`, `float`, `complex` and `int` all understand the 
underscores; there's no good reason for `Fraction` not to.

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.

----------
nosy: +mark.dickinson

_______________________________________
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

Reply via email to