This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Sergey.Kirpichev
Recipients Sergey.Kirpichev, mark.dickinson
Date 2021-05-28.07:28:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <YLCbn4MKWSgiWtRX@note>
In-reply-to <1622184494.47.0.0823959623181.issue44258@roundup.psfhosted.org>
Content
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...
History
Date User Action Args
2021-05-28 07:28:35Sergey.Kirpichevsetrecipients: + Sergey.Kirpichev, mark.dickinson
2021-05-28 07:28:35Sergey.Kirpichevlinkissue44258 messages
2021-05-28 07:28:35Sergey.Kirpichevcreate