diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 16:02:01 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-08 16:02:01 +0000 |
| commit | ff88556af6d5308b294e542639203483f9399915 (patch) | |
| tree | 786803419d27ea471e746535e4b4f52466d540c1 /Lib/types.py | |
| parent | 8e938b42570c6118b368c7a14679d85a5c1bd642 (diff) | |
| download | cpython-git-ff88556af6d5308b294e542639203483f9399915.tar.gz | |
Patch #449083: Use builtins to initalize the module.
Diffstat (limited to 'Lib/types.py')
| -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 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 |
