summaryrefslogtreecommitdiff
path: root/Lib/types.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-28 08:28:28 +0000
committerChristian Heimes <christian@cheimes.de>2007-11-28 08:28:28 +0000
commitc9543e42330e5f339d6419eba6a8c5a61a39aeca (patch)
treeee3c677e808d015b6c142e1cca28337e08839818 /Lib/types.py
parentceee0773d262bfe876e40da927b03279ed9f8419 (diff)
downloadcpython-git-c9543e42330e5f339d6419eba6a8c5a61a39aeca.tar.gz
Removed the new module
Removed a lot of types from the 'types' module that are available through builtins.
Diffstat (limited to 'Lib/types.py')
-rw-r--r--Lib/types.py23
1 files changed, 1 insertions, 22 deletions
diff --git a/Lib/types.py b/Lib/types.py
index 402fa1865e..72454a123f 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -9,23 +9,6 @@ import sys
# iterator. Don't check the type! Use hasattr to check for both
# "__iter__" and "__next__" attributes instead.
-NoneType = type(None)
-TypeType = type
-ObjectType = object
-
-IntType = int
-LongType = int
-FloatType = float
-BooleanType = bool
-try:
- ComplexType = complex
-except NameError:
- pass
-
-TupleType = tuple
-ListType = list
-DictType = DictionaryType = dict
-
def _f(): pass
FunctionType = type(_f)
LambdaType = type(lambda: None) # Same as FunctionType
@@ -53,11 +36,7 @@ except TypeError:
FrameType = type(tb.tb_frame)
tb = None; del tb
-SliceType = slice
-EllipsisType = type(Ellipsis)
-
-DictProxyType = type(TypeType.__dict__)
-NotImplementedType = type(NotImplemented)
+DictProxyType = type(type.__dict__)
# Extension types defined in a C helper module. XXX There may be no
# equivalent in implementations other than CPython, so it seems better to