#15991: Python 3 preparation: Rename sys.maxint to sys.maxsize
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  wluebbe                |       Status:  needs_review
           Type:         |    Milestone:  sage-6.2
  enhancement            |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:
  distribution           |  Work issues:
       Keywords:         |       Commit:
  python3                |  1f0a49b9439c87ad68012159d0f762466eb701cc
        Authors:         |     Stopgaps:
  Frédéric Chapoton      |
Report Upstream:  N/A    |
         Branch:         |
  u/chapoton/15991       |
   Dependencies:         |
-------------------------+-------------------------------------------------

Comment (by wluebbe):

 Some additional information form
 [[http://docs.python.org/3.1/whatsnew/3.0.html#integers|WhatsNew Python
 3]]

 //The sys.maxint constant was removed, since there is no longer a limit to
 the value of integers. However, sys.maxsize can be used as an integer
 larger than any practical list or string index. It conforms to the
 implementation’s “natural” integer size and is typically the same as
 sys.maxint in previous releases on the same platform (assuming the same
 build options).//

 and from the [[http://docs.python.org/3/library/sys.html#sys.maxint|Python
 3 docmentation]]


 sys.maxsize
     An integer giving the maximum value a variable of type Py_ssize_t can
 take. It’s usually 2!**31 - 1 on a 32-bit platform and 2!**63 - 1 on a
 64-bit platform.

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