Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-44523: Remove the pass-through for hash() in weakref proxy objects (
GH-26950) (GH-26960) (cherry picked from commit e2fea10) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
- Loading branch information
1 parent
02859df
commit f790bc8
Showing
3 changed files
with
15 additions
and
20 deletions.
There are no files selected for viewing
This file contains 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
3 changes: 3 additions & 0 deletions
3
Misc/NEWS.d/next/Core and Builtins/2021-06-29-11-49-29.bpo-44523.67-ZIP.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Remove the pass-through for :func:`hash` of :class:`weakref.proxy` objects | ||
to prevent unintended consequences when the original referred object | ||
dies while the proxy is part of a hashable object. Patch by Pablo Galindo. |
This file contains 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