[Tutor] Python practices

Karthik Gurumurthy karthikg@aztec.soft.net
Thu, 14 Feb 2002 18:17:55 +0530


Can someone point me to the URL which describes the Python practices:
for eg:
I checked out python idioms (@ python.org). Did'nt have the kind of
information i was looking for.
something along these lines...

if name == 'x or name == 'y':

s'd be written as

if name in ['x','y']:

thanks,
karthik.