mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
Patch #449083: Use builtins to initalize the module.
This commit is contained in:
parent
8e938b4257
commit
ff88556af6
1 changed files with 7 additions and 7 deletions
14
Lib/types.py
14
Lib/types.py
|
@ -10,19 +10,19 @@ NoneType = type(None)
|
||||||
TypeType = type
|
TypeType = type
|
||||||
ObjectType = object
|
ObjectType = object
|
||||||
|
|
||||||
IntType = type(0)
|
IntType = int
|
||||||
LongType = type(0L)
|
LongType = long
|
||||||
FloatType = type(0.0)
|
FloatType = float
|
||||||
try:
|
try:
|
||||||
ComplexType = type(complex(0,1))
|
ComplexType = complex
|
||||||
except NameError:
|
except NameError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
StringType = type('')
|
StringType = str
|
||||||
UnicodeType = type(u'')
|
UnicodeType = unicode
|
||||||
BufferType = type(buffer(''))
|
BufferType = type(buffer(''))
|
||||||
|
|
||||||
TupleType = type(())
|
TupleType = tuple
|
||||||
ListType = list
|
ListType = list
|
||||||
DictType = DictionaryType = dictionary
|
DictType = DictionaryType = dictionary
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue