mirror of
https://github.com/python/cpython.git
synced 2024-11-23 18:04:37 +08:00
Patch #449083: Use builtins to initalize the module.
This commit is contained in:
parent
8e938b4257
commit
ff88556af6
14
Lib/types.py
14
Lib/types.py
@ -10,19 +10,19 @@ NoneType = type(None)
|
||||
TypeType = type
|
||||
ObjectType = object
|
||||
|
||||
IntType = type(0)
|
||||
LongType = type(0L)
|
||||
FloatType = type(0.0)
|
||||
IntType = int
|
||||
LongType = long
|
||||
FloatType = float
|
||||
try:
|
||||
ComplexType = type(complex(0,1))
|
||||
ComplexType = complex
|
||||
except NameError:
|
||||
pass
|
||||
|
||||
StringType = type('')
|
||||
UnicodeType = type(u'')
|
||||
StringType = str
|
||||
UnicodeType = unicode
|
||||
BufferType = type(buffer(''))
|
||||
|
||||
TupleType = type(())
|
||||
TupleType = tuple
|
||||
ListType = list
|
||||
DictType = DictionaryType = dictionary
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user