#17808: Preparse old-style octals as strings
-------------------------------------+-------------------------------------
       Reporter:  jdemeyer           |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-6.6
      Component:  misc               |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jeroen Demeyer     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jdemeyer/ticket/17808            |  533af4ce9ae65f71d38177052fccb28cc69234e7
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Description changed by jdemeyer:

Old description:

> To solve #17807, we preparse `0100` as `Integer('0100')` instead of
> `Integer(0100)`: thanks to #17413, this will give a deprecation warning
> so that users should know something funny is going on:
> {{{
> sage: 0100
> /usr/local/src/sage-git/local/lib/python2.7/site-
> packages/IPython/core/interactiveshell.py:2883: DeprecationWarning: use
> 0o as octal prefix instead of 0
> See http://trac.sagemath.org/17413 for details.
>   exec(code_obj, self.user_global_ns, self.user_ns)
> 64
> }}}

New description:

 To solve #17807, we preparse `0100` as `Integer('0100')` instead of
 `Integer(0100)`: thanks to #17413, this will give a deprecation warning so
 that users should know something funny is going on:
 {{{
 sage: 0100
 /usr/local/src/sage-git/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.py:2883: DeprecationWarning: use 0o
 as octal prefix instead of 0
 If you do not want this number to be interpreted as octal, remove the
 leading zeros.
 See http://trac.sagemath.org/17413 for details.
   exec(code_obj, self.user_global_ns, self.user_ns)
 64
 }}}

--

--
Ticket URL: <http://trac.sagemath.org/ticket/17808#comment:10>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to