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:



Table Of Contents