diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 16:02:01 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 16:02:01 (GMT) |
commit | ff88556af6d5308b294e542639203483f9399915 (patch) | |
tree | 786803419d27ea471e746535e4b4f52466d540c1 | |
parent | 8e938b42570c6118b368c7a14679d85a5c1bd642 (diff) | |
download | cpython-ff88556af6d5308b294e542639203483f9399915.zip cpython-ff88556af6d5308b294e542639203483f9399915.tar.gz cpython-ff88556af6d5308b294e542639203483f9399915.tar.bz2 |
Patch #449083: Use builtins to initalize the module.
-rw-r--r-- | Lib/types.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Lib/types.py b/Lib/types.py index d60ee56d..742b8cc 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 |