# SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/syntaxerror-leading-zeros-in-decimal-integer-literals-are-not-permitted-use-an-0o-prefix-for-octal-67b65f40c517
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror, literals

compile of x=0777. x=1abc and x=1__0 gave 'invalid decimal literal'; x=1 followed by a curly quote gave "invalid character '’' (U+2019)".
