summaryrefslogtreecommitdiffstats
path: root/Lib/weakref.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-04-10 19:11:23 (GMT)
committerFred Drake <fdrake@acm.org>2001-04-10 19:11:23 (GMT)
commit9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8 (patch)
tree61e5074bb944819ad1f39f27162aab74c6088613 /Lib/weakref.py
parentbf43691ccb5198ab0f853ed2297afa98f9ad878c (diff)
downloadcpython-9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8.zip
cpython-9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8.tar.gz
cpython-9a9d219f07656a9f1eb6f8beb2a9e2ee462b77f8.tar.bz2
mapping(): Remove this function since it does not add anything to the API.
Diffstat (limited to 'Lib/weakref.py')
-rw-r--r--Lib/weakref.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/weakref.py b/Lib/weakref.py
index a5a2d1d..6945757 100644
--- a/Lib/weakref.py
+++ b/Lib/weakref.py
@@ -19,17 +19,10 @@ from _weakref import \
ProxyTypes = (ProxyType, CallableProxyType)
-__all__ = ["ref", "mapping", "proxy", "getweakrefcount", "getweakrefs",
+__all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
"WeakKeyDictionary", "ReferenceType", "ProxyType",
"CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
-def mapping(dict=None,weakkeys=0):
- if weakkeys:
- return WeakKeyDictionary(dict)
- else:
- return WeakValueDictionary(dict)
-
-
class WeakValueDictionary(UserDict.UserDict):
# We inherit the constructor without worrying about the input