Octal Constants

suggest change

In Python 2, an octal literal could be defined as

>>> 0755  # only Python 2

To ensure cross-compatibility, use

0o755  # both Python 2 and Python 3

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Incompatibilities moving from Python 2 to Python 3:
*Octal Constants

Table Of Contents
31Set
39Incompatibilities moving from Python 2 to Python 3
166Gzip