-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce GC contract at compile time #531
Conversation
93ad3ce
to
d7ffdfc
Compare
Good catch, 👍 for this PR |
d7ffdfc
to
11950fa
Compare
Implementations for these methods should always be provided. See PyO3#531
11950fa
to
c953e3a
Compare
PyGCProtocol must be implemented for anything registered as tracked by the garbage collector. This modifies the `pyclass` macro to enforce this at compile time.
c953e3a
to
e633ae2
Compare
Codecov Report
@@ Coverage Diff @@
## master #531 +/- ##
==========================================
- Coverage 87.68% 87.56% -0.12%
==========================================
Files 65 65
Lines 3443 3443
==========================================
- Hits 3019 3015 -4
- Misses 424 428 +4
Continue to review full report at Codecov.
|
1 similar comment
Codecov Report
@@ Coverage Diff @@
## master #531 +/- ##
==========================================
- Coverage 87.68% 87.56% -0.12%
==========================================
Files 65 65
Lines 3443 3443
==========================================
- Hits 3019 3015 -4
- Misses 424 428 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice document 👍
Thanks! |
PyGCProtocol must be implemented for anything registered as tracked by the garbage collector. This modifies the
pyclass
macro to enforce this at compile time.