Hello,
An interface for parameterised SQL statements (working with placeholders) is provided by the execute() method from the Cursor class at the moment.
https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.execute
I assume that the "SQL Statement Object" from the SQLite C interface is reused there already.
http://sqlite.org/c3ref/stmt.html
I imagine that it will be more efficient occasionally to offer also a base class like "prepared_statement" so that the parameter specification …
[View More]does not need to be parsed for every passed command.
I suggest to improve corresponding preparation and compilation possibilities.
https://bugs.python.org/issue22956
Regards,
Markus
[View Less]
I have a situation where, no matter how the routine ends, I need to return the focus to a widget. It would be
rather clever to do this with a context, but I would expect something like this to be a possible strategy
with contextlib.context(enter=None, exit=lambda *args: my_widget.setFocus()):
do what I need to do
as far as I know, at the moment it's not possible. Am I right? I think it would be an easy and practical
addition to the contextlib module to quickly register two …
[View More]routines for enter and exit.
[View Less]