Message389145
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). |
|
Date |
User |
Action |
Args |
2021-03-20 06:19:44 | wilscm | set | recipients:
+ wilscm, docs@python |
2021-03-20 06:19:44 | wilscm | set | messageid: <1616221184.91.0.644321599481.issue43566@roundup.psfhosted.org> |
2021-03-20 06:19:44 | wilscm | link | issue43566 messages |
2021-03-20 06:19:44 | wilscm | create | |
|