Mark Dickinson <dicki...@gmail.com> added the comment: For the message:
> invalid token, use 0o prefix for octal integers I'd expect (without having any evidence to back this up) that the majority of people who encounter this error would be those who intended a decimal literal rather than an octal one, in which case an error message that talks about octal might be confusing. >>> import datetime >>> birthday = datetime.datetime(1912, 06, 23) File "<stdin>", line 1 birthday = datetime.datetime(1912, 06, 23) ^ SyntaxError: invalid token Could we cover both cases in a single message? "leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers" ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33305> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com