bpo-42064: Convert sqlite3 global state to module state#29073
Conversation
|
Nice! The finish line is near!
I suggest removing |
Sorry, something went wrong.
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 |
Sorry, something went wrong.
|
"an instance of the defining class" roughly means |
Sorry, something went wrong.
|
(And any subclass will necessarily be defined in another module, so |
Sorry, something went wrong.
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. |
Sorry, something went wrong.
|
Also, I'm fine with removing |
Sorry, something went wrong.
…get_state_by_type
|
FYI, I ran the sqlitesynth benchmark to see if this change introduces any performance regression:
|
Sorry, something went wrong.
encukou
left a comment
There was a problem hiding this comment.
Other than this, the change looks good:
Sorry, something went wrong.
⚠️⚠️⚠️ Buildbot failure ⚠️⚠️⚠️Hi! The buildbot AMD64 FreeBSD Non-Debug 3.x has failed when building commit 8f24b7d. What do you need to do:
You can take a look at the buildbot page here: https://buildbot.python.org/all/#builders/172/builds/1015 Summary of the results of the build (if available): Click to see traceback logsremote: Enumerating objects: 25, done.
remote: Counting objects: 4% (1/25)
remote: Counting objects: 8% (2/25)
remote: Counting objects: 12% (3/25)
remote: Counting objects: 16% (4/25)
remote: Counting objects: 20% (5/25)
remote: Counting objects: 24% (6/25)
remote: Counting objects: 28% (7/25)
remote: Counting objects: 32% (8/25)
remote: Counting objects: 36% (9/25)
remote: Counting objects: 40% (10/25)
remote: Counting objects: 44% (11/25)
remote: Counting objects: 48% (12/25)
remote: Counting objects: 52% (13/25)
remote: Counting objects: 56% (14/25)
remote: Counting objects: 60% (15/25)
remote: Counting objects: 64% (16/25)
remote: Counting objects: 68% (17/25)
remote: Counting objects: 72% (18/25)
remote: Counting objects: 76% (19/25)
remote: Counting objects: 80% (20/25)
remote: Counting objects: 84% (21/25)
remote: Counting objects: 88% (22/25)
remote: Counting objects: 92% (23/25)
remote: Counting objects: 96% (24/25)
remote: Counting objects: 100% (25/25)
remote: Counting objects: 100% (25/25), done.
remote: Compressing objects: 9% (1/11)
remote: Compressing objects: 18% (2/11)
remote: Compressing objects: 27% (3/11)
remote: Compressing objects: 36% (4/11)
remote: Compressing objects: 45% (5/11)
remote: Compressing objects: 54% (6/11)
remote: Compressing objects: 63% (7/11)
remote: Compressing objects: 72% (8/11)
remote: Compressing objects: 81% (9/11)
remote: Compressing objects: 90% (10/11)
remote: Compressing objects: 100% (11/11)
remote: Compressing objects: 100% (11/11), done.
remote: Total 13 (delta 12), reused 2 (delta 2), pack-reused 0
From https://github.com/python/cpython
* branch main -> FETCH_HEAD
Note: switching to '8f24b7dbcbd83311dad510863d8cb41f0e91b464'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at 8f24b7dbcb [bpo-42064](https://bugs.python.org/issue42064): Convert `sqlite3` global state to module state (GH-29073)
Switched to and reset branch 'main'
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
Cannot open file '/usr/home/buildbot/python/3.x.koobs-freebsd-9e36.nondebug/build/test-results.xml' for upload |
Sorry, something went wrong.
|
The buildbot failed with signal 9 (SIGKILL), before it got to sqlite tests. Most likely unrelated. |
Sorry, something went wrong.
Yes, I've concluded with it being unrelated. Looks like the buildbot was shut down or restarted. |
Sorry, something went wrong.
https://bugs.python.org/issue42064