Ask Your Question
0

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

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

dsejas gravatar image

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

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/519...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

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

tmonteil gravatar image

It is a known issue, but no consensus was found about fixing it, see https://groups.google.com/forum/#!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

Stats

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

Seen: 69 times

Last updated: Jun 14