On 12/01/08 00:23 +0100, Hrvoje Niksic wrote: > "Faber J. Fedor" <[EMAIL PROTECTED]> writes: > > Does this '("" if not where...' syntax actually work? > > http://docs.python.org/whatsnew/pep-308.html
C'mon! I'm in Day Two of learning Python. You can't expect me to be reading "What's New" docs already! :-) I did find it interesting that the page mentioned said "Guido van Rossum eventually chose a surprising syntax:". When I first saw the construct I thought "Oh, they borrowed that from Perl". :-) (Although you can't do the else part in Perl, it is a natural extension, IMO.) -- Regards, Faber Fedor -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- http://mail.python.org/mailman/listinfo/python-list