diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-09-09 14:55:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-09 14:55:58 (GMT) |
commit | a2af05a0d3f0da06b8d432f52efa3ecf29038532 (patch) | |
tree | 3cdd6eee59dc6568efd7abe1b15fe1a863d86329 /Misc/NEWS.d | |
parent | b3b48c81f09d1472010937f1331c5a208a2a2d48 (diff) | |
download | cpython-a2af05a0d3f0da06b8d432f52efa3ecf29038532.zip cpython-a2af05a0d3f0da06b8d432f52efa3ecf29038532.tar.gz cpython-a2af05a0d3f0da06b8d432f52efa3ecf29038532.tar.bz2 |
bpo-38006: Avoid closure in weakref.WeakValueDictionary (GH-15641)
weakref.WeakValueDictionary defines a local remove() function used as
callback for weak references. This function was created with a
closure. Modify the implementation to avoid the closure.
Diffstat (limited to 'Misc/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/Library/2019-09-02-13-37-27.bpo-38006.Y7vA0Q.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-09-02-13-37-27.bpo-38006.Y7vA0Q.rst b/Misc/NEWS.d/next/Library/2019-09-02-13-37-27.bpo-38006.Y7vA0Q.rst new file mode 100644 index 0000000..ff064ad --- /dev/null +++ b/Misc/NEWS.d/next/Library/2019-09-02-13-37-27.bpo-38006.Y7vA0Q.rst @@ -0,0 +1,3 @@ +weakref.WeakValueDictionary defines a local remove() function used as +callback for weak references. This function was created with a closure. +Modify the implementation to avoid the closure. |