Kaydet (Commit) 9a9d219f authored tarafından Fred Drake's avatar Fred Drake

mapping(): Remove this function since it does not add anything to the API.

üst bf43691c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment