Ask Your Question

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

asked 2020-06-13 17:29:43 -0600

dsejas gravatar image

updated 2020-06-13 17:44:06 -0600

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!


edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2020-06-14 15:05:19 -0600

tmonteil gravatar image

It is a known issue, but no consensus was found about fixing it, see!msg...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2020-06-13 17:29:43 -0600

Seen: 75 times

Last updated: Jun 14 '20