Hmm... An idea: if a,b==c,d:
Andrew Koenig
ark at research.att.com
Mon Nov 18 18:37:38 EST 2002
Richard> It doesn't have ()s, so it ain't two tuples. Easy enough, da?
OK, so you want
if a, b >= c, d: foo()
to mean the same as
if a >= b and c >= d: foo()
But
x = a, b >= c, d
already means the same as
x = (a, (b >= c), d)
So the string "a, b >= c, d" would have two completely different
meanings, depending on context.
Are you sure that's what you want?
--
Andrew Koenig, ark at research.att.com, http://www.research.att.com/info/ark
More information about the Python-list
mailing list