FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Clear weak reference list when an extension type is destroyed by lostmsu · Pull Request #1761 · pythonnet/pythonnet · GitHub

Clear weak reference list when an extension type is destroyed - #1761

Merged
filmor merged 1 commit into
pythonnet:masterfrom
losttech:weakref/ext
Apr 10, 2022
Merged

Clear weak reference list when an extension type is destroyed#1761
filmor merged 1 commit into
pythonnet:masterfrom
losttech:weakref/ext

Conversation

lostmsu commented Apr 9, 2022

Copy link
Copy Markdown
Member

Extension types were missed in #1758

What does this implement/fix? Explain your changes.

Clears weakref list in extension type instances when they are destroyed

According to official documentation for defining extension types, if they are to support weak references, they must clear weak reference list associated with the instance in tp_clear.

Extension types were missed in pythonnet#1758 ( 50da522 )
lostmsu requested a review from filmor April 9, 2022 20:59
filmor merged commit 86c6a7f into pythonnet:master Apr 10, 2022
lostmsu deleted the weakref/ext branch April 10, 2022 15:54
This 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL