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 eric.smith
Recipients
Date 2018-01-01.14:33:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id
In-reply-to
Content
Fixed possible versions. 

I’m firmly -1 on this. It’s not at all common, and would allow code to pass that I’d prefer to cause an error. For the rare case where it’s desired, it can be moved in to the client code. 

If I were doing this in client code, I’d try to convert to an int, and if an exception use the string version. It’s only a few lines of code:

    try:
        val = int(val)
    except ValueError:
        pass

(I think it’s a ValueError, but I’m on my phone and can’t easily verify.)
History
Date User Action Args
2018-01-01 14:33:45eric.smithlinkissue32474 messages
2018-01-01 14:33:45eric.smithcreate