Back to index

python3.2  3.2.2
Classes | Variables
lib2to3.fixes.fix_types Namespace Reference

Classes

class  FixTypes

Variables

dictionary _TYPE_MAPPING
list _pats = ["power< 'types' trailer< '.' name='%s' > >" % t for t in _TYPE_MAPPING]

Variable Documentation

list lib2to3.fixes.fix_types._pats = ["power< 'types' trailer< '.' name='%s' > >" % t for t in _TYPE_MAPPING]

Definition at line 52 of file fix_types.py.

Initial value:
00001 {
00002         'BooleanType' : 'bool',
00003         'BufferType' : 'memoryview',
00004         'ClassType' : 'type',
00005         'ComplexType' : 'complex',
00006         'DictType': 'dict',
00007         'DictionaryType' : 'dict',
00008         'EllipsisType' : 'type(Ellipsis)',
00009         #'FileType' : 'io.IOBase',
00010         'FloatType': 'float',
00011         'IntType': 'int',
00012         'ListType': 'list',
00013         'LongType': 'int',
00014         'ObjectType' : 'object',
00015         'NoneType': 'type(None)',
00016         'NotImplementedType' : 'type(NotImplemented)',
00017         'SliceType' : 'slice',
00018         'StringType': 'bytes', # XXX ?
00019         'StringTypes' : 'str', # XXX ?
00020         'TupleType': 'tuple',
00021         'TypeType' : 'type',
00022         'UnicodeType': 'str',
00023         'XRangeType' : 'range',
00024     }

Definition at line 27 of file fix_types.py.