From ff88556af6d5308b294e542639203483f9399915 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Wed, 8 Aug 2001 16:02:01 +0000 Subject: [PATCH] Patch #449083: Use builtins to initalize the module. --- Lib/types.py | 14 +++++++------- 1 file 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 -- 2.40.0