Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is the `011` notation for octal 11 deprecated or not?

Hello, Sage Community!

A few months ago, when compiling Sage code to convert the octal 11 to decimal notation, I got a deprecation warning message telling me not to use 011, but 0o11. That was with SageMath 8.x (possibly 8.8 or 8.9; I don't remember exactly).

However, right now (version 9.1), when I run the command 011, it returns 9 (the decimal representation of octal 11), without any deprecation warning.

As the title says: Is the 011 notation for octal 11 deprecated or not?

Thanks in advance for your answers!

Is the `011` notation for octal 11 deprecated or not?

Hello, Sage Community!

A few months ago, when compiling Sage code to convert the octal 11 to decimal notation, I got a deprecation warning message telling me not to use 011, but 0o11. That was with SageMath 8.x (possibly 8.8 or 8.9; I don't remember exactly).

However, right now (version 9.1), when I run the command 011, it returns 9 (the decimal representation of octal 11), without any deprecation warning.

As the title says: Is the 011 notation for octal 11 deprecated or not?

Thanks in advance for your answers!

Related: https://ask.sagemath.org/question/51952/is-the-hex31-conversion-deprecated-or-not/