#15987: Python 3 preparation: Change syntax of long and octal integer literals
-------------------------------------+-------------------------------------
       Reporter:  wluebbe            |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.2
      Component:  distribution       |   Resolution:
       Keywords:  python3            |    Merged in:
        Authors:                     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/wluebbe/ticket/15987             |  a17cb523eba3d523e71d3a2c4f9b4bf90ad44ef7
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by wluebbe):

 * status:  new => needs_review
 * commit:   => a17cb523eba3d523e71d3a2c4f9b4bf90ad44ef7
 * branch:   => u/wluebbe/ticket/15987


Comment:

 The changes for the new octal literal format should be complete: 2 modules
 were fixed by the 2to3 tool and another case was manually fixed in a doc-
 test.

 2to3 has found nothing for the long integer literal (suffix "L").[[br]]
 13 modules were found with regexp search (r"\s (0\d+) [\s)]"). The result
 file is attached.
 * 6 pyx modules from {{{sage/rings/padics}}} contain code like {{{(1L <<
 (sizeof(long) * 8 - 2)) - 1}}}. I do not whether these should be changed.
 * 4 modules had doc-test with stuff like {{{4561L   # 32-bit}}}. Perhaps
 these test can be made more tolerant.
 * The module {{{sage/interfaces/r.py}}} had strings like[[br]]
 "rel_re_integer.sub(a._subs_integer, ' 1L 2L')". Maybe this could / should
 be changed.
 * 2 modules in {{{sage/combinat}}} had the text "ValueError: R10L is not a
 correct map". Nothing to change.

 ----
 New commits:
 
||[http://git.sagemath.org/sage.git/commit/?id=a17cb523eba3d523e71d3a2c4f9b4bf90ad44ef7
 a17cb52]||{{{changed to new octal literal format (in 3 modules)}}}||

--
Ticket URL: <http://trac.sagemath.org/ticket/15987#comment:1>
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