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 wilscm
Recipients docs@python, wilscm
Date 2021-03-20.06:19:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1616221184.91.0.644321599481.issue43566@roundup.psfhosted.org>
In-reply-to
Content
The documentation for the int() builtin says:

Base 0 means to interpret exactly as a code literal, so that the actual base is 2, 8, 10, or 16, and so that int('010', 0) is not legal, while int('010') is, as well as int('010', 8).

https://docs.python.org/3/library/functions.html#int

However 010 is a valid code literal, and int('010', 0) is legal (both are correctly interpreted as octal).
History
Date User Action Args
2021-03-20 06:19:44wilscmsetrecipients: + wilscm, docs@python
2021-03-20 06:19:44wilscmsetmessageid: <1616221184.91.0.644321599481.issue43566@roundup.psfhosted.org>
2021-03-20 06:19:44wilscmlinkissue43566 messages
2021-03-20 06:19:44wilscmcreate