]> granicus.if.org Git - python/commitdiff
Patch #449083: Use builtins to initalize the module.
authorMartin v. Löwis <martin@v.loewis.de>
Wed, 8 Aug 2001 16:02:01 +0000 (16:02 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Wed, 8 Aug 2001 16:02:01 +0000 (16:02 +0000)
Lib/types.py

index d60ee56d7e821bff9512c70f32ff061c799e25fd..742b8cc5ff4d86d527cd5bb5fb41e43f76f80781 100644 (file)
@@ -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