Why does Python's sqlite3 module not respect the order of positional parameters?
Why does Python's sqlite3 module not respect the order of positional parameters? Question: Recently I ran across the following peculiar behavior, that can be explained by the following code sample: import sqlite3, platform insert = (10, "today") db = sqlite3.connect(":memory:") db.execute("CREATE TABLE t (number, string)") db.execute("INSERT INTO t (string, number) VALUES ($2, $1)", insert) select …