String substitution VS proper mysql escaping

Aahz aahz at pythoncraft.com
Sat Sep 4 09:10:32 EDT 2010


In article <bc70e108-f2ca-47b5-93d4-6911dfc3b814 at q22g2000yqm.googlegroups.com>,
=?UTF-8?B?zp3Or866zr/Pgg==?=  <nikos.the.gr33k at gmail.com> wrote:
>
>After all () used to define tuples and [] usedd to define lists. Why
>commas?

No, "()" does *not* define tuples, except for the empty tuple.  The comma
defines tuples, with parentheses simply used for visual effect:

>>> 1, 2, 3
(1, 2, 3)
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box."  --Cliff Wells



More information about the Python-list mailing list