diff options
author | Erlend Egeberg Aasland <erlend.aasland@innova.no> | 2022-03-03 14:54:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-03 22:54:36 +0900 |
commit | 88567a997005c9388137cd18c5d7f4483423dac3 (patch) | |
tree | 579796d07fdf12488a06fa4b676229f11f253414 /Modules/_sqlite/module.c | |
parent | 751c9ed801ad1189272ca10f0749bfc9d49b5038 (diff) | |
download | cpython-88567a997005c9388137cd18c5d7f4483423dac3.tar.gz cpython-88567a997005c9388137cd18c5d7f4483423dac3.zip |
bpo-46874: Speed up sqlite3 user-defined aggregate 'step' method (GH-31604)
Diffstat (limited to 'Modules/_sqlite/module.c')
-rw-r--r-- | Modules/_sqlite/module.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/_sqlite/module.c b/Modules/_sqlite/module.c index 70fde4910f6..563105c6391 100644 --- a/Modules/_sqlite/module.c +++ b/Modules/_sqlite/module.c @@ -627,6 +627,7 @@ module_clear(PyObject *module) Py_CLEAR(state->str___conform__); Py_CLEAR(state->str_executescript); Py_CLEAR(state->str_finalize); + Py_CLEAR(state->str_step); Py_CLEAR(state->str_upper); return 0; @@ -713,6 +714,7 @@ module_exec(PyObject *module) ADD_INTERNED(state, __conform__); ADD_INTERNED(state, executescript); ADD_INTERNED(state, finalize); + ADD_INTERNED(state, step); ADD_INTERNED(state, upper); /* Set error constants */ |