[Python-checkins] CVS: python/dist/src/Lib weakref.py,1.6,1.7

Fred L. Drake fdrake@users.sourceforge.net
2001年4月10日 12:11:25 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv8925
Modified Files:
	weakref.py 
Log Message:
mapping(): Remove this function since it does not add anything to the API.
Index: weakref.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/weakref.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** weakref.py	2001年03月01日 04:27:19	1.6
--- weakref.py	2001年04月10日 19:11:23	1.7
***************
*** 20,33 ****
 ProxyTypes = (ProxyType, CallableProxyType)
 
! __all__ = ["ref", "mapping", "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):
--- 20,26 ----
 ProxyTypes = (ProxyType, CallableProxyType)
 
! __all__ = ["ref", "proxy", "getweakrefcount", "getweakrefs",
 "WeakKeyDictionary", "ReferenceType", "ProxyType",
 "CallableProxyType", "ProxyTypes", "WeakValueDictionary"]
 
 class WeakValueDictionary(UserDict.UserDict):

AltStyle によって変換されたページ (->オリジナル) /