Hmm... An idea: if a,b==c,d:
Brad Hards
bhards at bigpond.net.au
Mon Nov 18 18:53:33 EST 2002
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 19 Nov 2002 10:26, Richard Dillingham wrote:
> > Not really... ()s don't have anything particularly to do with
> > tuples. The comma is the tupple constructor operator: a,c is a
> > tuple (a,c) is the same tuple with parens around it.
<snip>
> Whereas if (a,b)==(c,d): print a
> DOES work.
So does if(a,b == c,d): print a
The bracket's don't make the tuple, they just protect the conditional
statement.
Brad
- --
http://linux.conf.au. 22-25Jan2003. Perth, Aust. I'm registered. Are you?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE92X19W6pHgIdAuOMRAo8HAKCARdwh4VQzlHoYYsjSFVz8basQrgCglezV
o1c07tX4E1MKIoc/XubR38g=
=g/0u
-----END PGP SIGNATURE-----
More information about the Python-list
mailing list