Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
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
bpo-42972: Fully implement GC protocol for sqlite3 heap types #26104
bpo-42972: Fully implement GC protocol for sqlite3 heap types #26104
Changes from all commits
6ece632866060913bc519451901720da088ca870acf5d987334928ed590ff8eb080ff72bcfa29f8eb733ab4c6e6926787dFile filter
Conversations
Jump to
There are no files selected for viewing
shihai1991May 23, 2021
Member
self->key, self->data doesn't be visited in here?
erlend-aaslandMay 23, 2021
•
edited
Author
Contributor
Key is just a string, IIRC (I'll check when I'm back on my computer). Data is a statement object IIRC, so that should be visited. I'll fix it. Thanks!
UPDATE:
keyis a string,datais apysqlite_Statement.shihai1991May 23, 2021
Member
self->isolation_levelshould be visited?erlend-aaslandMay 23, 2021
Author
Contributor
I was under the impression that one does not need to visit
strbecause a ref. cycle is impossible, no?shihai1991May 23, 2021
Member
OK. I have no experience in
sqlite:(. But I believe that thetp_traversehave no side effect at least :)erlend-aaslandMay 23, 2021
•
edited
Author
Contributor
I've added it for consistency with the clear function :)
shihai1991May 23, 2021
Member
Got it. Thanks.
pablogsalMay 24, 2021
Member
If this object cannot hold any Python objects, why is implementing the GC interface?
erlend-aaslandMay 25, 2021
Author
Contributor
Because we need to visit the type.
erlend-aaslandMay 25, 2021
Author
Contributor
Quoting Victor: