New submission from Erlend Egeberg Aasland <erlend.aasl...@innova.no>:

The type checks at the start of pysqlite_statement_bind_parameter() are 
redundant:
We first check for exact types (*_CheckExact()), and then we check again for 
exact or subtyped versions (*_Check()).

(Adding to the redundantness: the result of this if..else "switch statement" is 
then reused as the expression in the subsequent switch statement.)

Suggesting to remove the redundant checks and merge the two switch statements.

----------
components: Library (Lib)
messages: 387302
nosy: berker.peksag, erlendaasland
priority: normal
severity: normal
status: open
title: [sqlite3] Redundant type checks in pysqlite_statement_bind_parameter()
type: enhancement
versions: Python 3.10

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue43267>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to