sqlite3 docbug (was problem with sqlite3)
Rustom Mody
rustompmody at gmail.com
Thu Jan 23 10:00:46 EST 2014
On Thursday, January 23, 2014 4:13:26 PM UTC+5:30, Terry Reedy wrote:
> http://bugs.python.org/issue20364
Thanks for that!
I would have preferred a slightly louder warning with respect to singleton
tuples given that:
1. Singleton tuple syntax is not consistent with other-length tuples
2. This inconsistency is somewhat alleviated by the fact that in a classic
format ('%') expression, the second argument can be a single element when the
format string has only one %-spec -- so one inconsistency to correct another
3. conn.execute's parameters, apparently very analogous to the '%'
-- even more so given the standard sql-injection advisory -- is not consistent
with 2 above
Still the suggested doc-fix is much better than the current almost
undocumented situation -- so thanks again!
More information about the Python-list
mailing list