summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
authorErlend Egeberg Aasland <erlend.aasland@innova.no>2021-06-08 15:00:56 (GMT)
committerGitHub <noreply@github.com>2021-06-08 15:00:56 (GMT)
commit1c02655fb08043b3027748ca1179c416c21a4277 (patch)
tree3124796b69e7fac7a0100299f7705ac928a474b1 /Lib/test/test_compile.py
parent3fe921cd49959181163671364c8b84faa88f7895 (diff)
downloadcpython-1c02655fb08043b3027748ca1179c416c21a4277.zip
cpython-1c02655fb08043b3027748ca1179c416c21a4277.tar.gz
cpython-1c02655fb08043b3027748ca1179c416c21a4277.tar.bz2
bpo-44329: Refactor sqlite3 statement creation (GH-26566)
Call SQLite API's first, and return early in case of error. At the end, allocate the object and initialise members. We now avoid unneeded alloc/dealloc's in case the statement creation fails.
Diffstat (limited to 'Lib/test/test_compile.py')
0 files changed, 0 insertions, 0 deletions