if statement, with function inside it: if (t = Test()) == True:
Piet van Oostrum
piet at cs.uu.nl
Fri Apr 24 19:34:02 EDT 2009
>>>>> Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> (SD) wrote:
>SD> On Fri, 24 Apr 2009 03:00:26 -0700, GC-Martijn wrote:
>>> ------------------------------------------ The long way
>>> t = Test()
>>> if (t == 'Vla':
>>> print t # must contain Vla
>SD> What's wrong with that?
Missing ')' or better spurious '(' :=)
--
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org
More information about the Python-list
mailing list