summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/types.py b/Lib/types.py
index d60ee56d7e..742b8cc5ff 100644
--- a/Lib/types.py
+++ b/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