bpo-38006: Avoid closure in weakref.WeakValueDictionary by vstinner · Pull Request #15641 · python/cpython
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.
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request
Sep 9, 2019weakref.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. (cherry picked from commit a2af05a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
miss-islington added a commit that referenced this pull request
Sep 9, 2019weakref.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. (cherry picked from commit a2af05a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
vstinner added a commit that referenced this pull request
Sep 9, 2019websurfer5 pushed a commit to websurfer5/cpython that referenced this pull request
Jul 20, 2020This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters