ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 14 Jun 2020 22:05:19 +0200Is the `011` notation for octal 11 deprecated or not?https://ask.sagemath.org/question/51951/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/Sun, 14 Jun 2020 00:29:43 +0200https://ask.sagemath.org/question/51951/is-the-011-notation-for-octal-11-deprecated-or-not/Answer by tmonteil for <p>Hello, Sage Community!</p>
<p>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 <code>011</code>, but <code>0o11</code>. That was with SageMath 8.x (possibly 8.8 or 8.9; I don't remember exactly).</p>
<p>However, right now (version 9.1), when I run the command <code>011</code>, it returns 9 (the decimal representation of octal 11), without any deprecation warning.</p>
<p>As the title says: Is the <code>011</code> notation for octal 11 deprecated or not?</p>
<p>Thanks in advance for your answers!</p>
<p><strong>Related:</strong><a href="https://ask.sagemath.org/question/51952/is-the-hex31-conversion-deprecated-or-not/">https://ask.sagemath.org/question/519...</a></p>
https://ask.sagemath.org/question/51951/is-the-011-notation-for-octal-11-deprecated-or-not/?answer=51985#post-id-51985It is a known issue, but no consensus was found about fixing it, see https://groups.google.com/forum/#!msg/sage-devel/Hm0SJiDVXHI/Ue5cWj7MDAAJ
Sun, 14 Jun 2020 22:05:19 +0200https://ask.sagemath.org/question/51951/is-the-011-notation-for-octal-11-deprecated-or-not/?answer=51985#post-id-51985