[issue43267] [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()

Serhiy Storchaka report at bugs.python.org
Fri Feb 19 12:33:46 EST 2021


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

It is a kind of optimization. We first perform few fast checks for exact types, and then slower subclass checks.

I do not know whether this optimization is worth, but it was written so, and there is nothing wrong in it.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43267>
_______________________________________


More information about the Python-bugs-list mailing list