#15994: Python 3 preparation: Change for removed members of types module
----------------------------+----------------------------
   Reporter:  wluebbe       |            Owner:
       Type:  enhancement   |           Status:  new
   Priority:  major         |        Milestone:  sage-6.2
  Component:  distribution  |         Keywords:  python3
  Merged in:                |          Authors:
  Reviewers:                |  Report Upstream:  N/A
Work issues:                |           Branch:
     Commit:                |     Dependencies:
   Stopgaps:                |
----------------------------+----------------------------
 Some members were removed from the {{{types}}} module in Python 3.
 Replace the deprecated members by their modern equivalents.

 Changes according to {{{lib2to3/fixes/fix_types.py}}}:
 {{{
   'BooleanType' : 'bool',
   'BufferType' : 'memoryview',
   'ClassType' : 'type',
   'ComplexType' : 'complex',
   'DictType': 'dict',
   'DictionaryType' : 'dict',
   'EllipsisType' : 'type(Ellipsis)',
   'FloatType': 'float',
   'IntType': 'int',
   'ListType': 'list',
   'LongType': 'int',
   'ObjectType' : 'object',
   'NoneType': 'type(None)',
   'NotImplementedType' : 'type(NotImplemented)',
   'SliceType' : 'slice',
   'StringType': 'bytes', # XXX ?
   'StringTypes' : 'str', # XXX ?
   'TupleType': 'tuple',
   'TypeType' : 'type',
   'UnicodeType': 'str',
   'XRangeType' : 'range',
 }}}

 This ticket is tracked as a dependency of meta-ticket ticket:15980.

--
Ticket URL: <http://trac.sagemath.org/ticket/15994>
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