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 wyz23x2
Recipients lys.nikolaou, pablogsal, wyz23x2
Date 2021-06-05.11:01:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1622890870.25.0.904012906945.issue44317@roundup.psfhosted.org>
In-reply-to
Content
Python 3.10.0b2 (tags/v3.10.0b2:3173141, Jun  1 2021, 09:05:29) [MSC v.1928 64 bit (AMD64)] on win32 
Type "help", "copyright", "credits" or "license" for more information.
>>> 0777
  File "<stdin>", line 1
    0777
       ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
>>> 000123
  File "<stdin>", line 1
    000123
         ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

The ^ is placed below the last digit.
However, this is misleading. The error is "leading zeros" and "prefix". So I would expect this:

>>> 0777
  File "<stdin>", line 1
    0777
    ^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
>>> 000123
  File "<stdin>", line 1
    000123
    ^^^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers

Opinions?
History
Date User Action Args
2021-06-05 11:01:10wyz23x2setrecipients: + wyz23x2, lys.nikolaou, pablogsal
2021-06-05 11:01:10wyz23x2setmessageid: <1622890870.25.0.904012906945.issue44317@roundup.psfhosted.org>
2021-06-05 11:01:10wyz23x2linkissue44317 messages
2021-06-05 11:01:09wyz23x2create