This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients Rosuav, docs@python, ghaering, r.david.murray, terry.reedy
Date 2014-01-23.23:26:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390519618.77.0.20915598882.issue20364@psf.upfronthosting.co.za>
In-reply-to
Content
I do not know what the intention was for sequences and named placeholders. Thinking of named tuples made me think it ok. The code might have a hint.

Is sqlite3 code maintained here or elsewhere? The current docstring is just 'Executes a SQL statement.', and help gives no signature. .executemany is similar. I suspect the whole module needs better docstrings.

You are correct about dicts and extra key:value pairs. I tried a UserDict with an extra pair and when I got

sqlite3.ProgrammingError: Incorrect number of bindings supplied. The current statement uses 2, and there are 3 supplied

I had not yet realized that they were treated as sequences, not dicts. So replace "Len(seq_dict)" with "The length of sequences". This solves Chris's point also.
History
Date User Action Args
2014-01-23 23:26:58terry.reedysetrecipients: + terry.reedy, ghaering, r.david.murray, docs@python, Rosuav
2014-01-23 23:26:58terry.reedysetmessageid: <1390519618.77.0.20915598882.issue20364@psf.upfronthosting.co.za>
2014-01-23 23:26:58terry.reedylinkissue20364 messages
2014-01-23 23:26:57terry.reedycreate