summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-29 16:21:13 +0000
committerChristian Heimes <christian@cheimes.de>2007-11-29 16:21:13 +0000
commit0db38532b304c89a998e4fc53b3ac8cd7ff23a8a (patch)
treec3cab3ea42fbf67eae746fe076fb929c0964efa3
parent043c8f866db72ad3f0c348e5481b079bc03a9808 (diff)
downloadcpython-git-0db38532b304c89a998e4fc53b3ac8cd7ff23a8a.tar.gz
Removed more types from the types module
-rw-r--r--Doc/library/types.rst5
-rw-r--r--Lib/_abcoll.py4
-rw-r--r--Lib/types.py3
3 files changed, 3 insertions, 9 deletions
diff --git a/Doc/library/types.rst b/Doc/library/types.rst
index 4894067647..a3d30fa979 100644
--- a/Doc/library/types.rst
+++ b/Doc/library/types.rst
@@ -85,11 +85,6 @@ The module defines the following names:
traceback object.
-.. data:: DictProxyType
-
- The type of dict proxies, such as ``type.__dict__``.
-
-
.. data:: GetSetDescriptorType
The type of objects defined in extension modules with ``PyGetSetDef``, such as
diff --git a/Lib/_abcoll.py b/Lib/_abcoll.py
index d91c0107af..122aac085c 100644
--- a/Lib/_abcoll.py
+++ b/Lib/_abcoll.py
@@ -18,7 +18,7 @@ __all__ = ["Hashable", "Iterable", "Iterator",
"Sequence", "MutableSequence",
"ByteString",
"bytearray_iterator", "bytes_iterator", "dict_itemiterator",
- "dict_items", "dict_keyiterator", "dict_keys",
+ "dict_items", "dict_keyiterator", "dict_keys", "dict_proxy",
"dict_valueiterator", "dict_values", "list_iterator",
"list_reverseiterator", "range_iterator", "set_iterator",
"str_iterator", "tuple_iterator", "zip_iterator",
@@ -44,6 +44,8 @@ zip_iterator = type(iter(zip()))
dict_keys = type({}.keys())
dict_values = type({}.values())
dict_items = type({}.items())
+## misc ##
+dict_proxy = type(type.__dict__)
### ONE-TRICK PONIES ###
diff --git a/Lib/types.py b/Lib/types.py
index 72454a123f..46a539accf 100644
--- a/Lib/types.py
+++ b/Lib/types.py
@@ -20,7 +20,6 @@ GeneratorType = type(_g())
class _C:
def _m(self): pass
-ClassType = type
MethodType = type(_C()._m)
BuiltinFunctionType = type(len)
@@ -36,8 +35,6 @@ except TypeError:
FrameType = type(tb.tb_frame)
tb = None; del tb
-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
# leave them undefined then to set them to e.g. None.