Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c560ea commit 9166e1aCopy full SHA for 9166e1a
2 files changed
Lib/weakref.py
@@ -43,12 +43,12 @@ class WeakValueDictionary(UserDict.UserDict):
43
# way in).
44
45
def __init__(self, *args, **kw):
46
- UserDict.UserDict.__init__(self, *args, **kw)
47
def remove(wr, selfref=ref(self)):
48
self = selfref()
49
if self is not None:
50
del self.data[wr.key]
51
self._remove = remove
+ UserDict.UserDict.__init__(self, *args, **kw)
52
53
def __getitem__(self, key):
54
o = self.data[key]()
Misc/NEWS
@@ -141,6 +141,8 @@ Extension Modules
141
Library
142
-------
143
144
+- Bug #1196315: fix weakref.WeakValueDictionary constructor.
145
+
146
- Bug #1213894: os.path.realpath didn't resolve symlinks that were the first
147
component of the path.
148
0 commit comments