if statement, with function inside it: if (t = Test()) == True:
Ulrich Eckhardt
eckhardt at satorlaser.com
Fri Apr 24 08:04:58 EDT 2009
Steven D'Aprano wrote:
> On Fri, 24 Apr 2009 03:00:26 -0700, GC-Martijn wrote:
>> t = Test()
>> if (t == 'Vla':
>> print t # must contain Vla
>
>
> What's wrong with that?
It unnecessarily injects the name 't' into the scope.
Uli
--
Sator Laser GmbH
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
More information about the Python-list
mailing list