Closed GoogleCodeExporter closed 9 years ago
I attach example script: exec_list_err.py
And path for correction: exec_list_err.diff
Original comment by tonal.pr...@gmail.com
on 28 Jun 2011 at 9:05
Attachments:
Original comment by rsyr...@gmail.com
on 4 Oct 2011 at 4:59
I'm looking at this and thinking that I don't really want to change anything.
The reason is that what the user is expecting can become ambiguous. For
example:
curs.execute('select %d', [1, 2])
Should this be an error because there are not enough substitution params or
should it become:
'select (1,2)'
Its easy enough to do this instead:
curs.execute('select %d, %d', *[1, 2])
and then nothing is ambiguous.
Original comment by rsyr...@gmail.com
on 3 Apr 2012 at 6:00
Original issue reported on code.google.com by
tonal.pr...@gmail.com
on 28 Jun 2011 at 9:02