-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
bpo-42064: Convert sqlite3
global state to module state
#29073
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
Conversation
Nice! The finish line is near!
I suggest removing |
Yes, it's been a long journey, but I've learned a thing or two while getting here :)
Hm, I was under the impression that the left operand was guaranteed to be an instance of the defining class: https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_richcompare |
"an instance of the defining class" roughly means |
(And any subclass will necessarily be defined in another module, so |
Yep, I know :) I'm not sure where I got the misconception regarding rich compare from, but that does not matter; I'll fix it right away. |
Also, I'm fine with removing |
…get_state_by_type
PTAL, @encukou :) |
FYI, I ran the sqlitesynth benchmark to see if this change introduces any performance regression:
|
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.
Other than this, the change looks good:
|
The buildbot failed with signal 9 (SIGKILL), before it got to sqlite tests. Most likely unrelated. |
Yes, I've concluded with it being unrelated. Looks like the buildbot was shut down or restarted. |
https://bugs.python.org/issue42064