I want my sugar...
16 Jan
2011
16 Jan
'11
5:44 p.m.
I am a newbie to python, and am curious why the following syntax is not supported: # Boolean test on x... if (x = someFunc(...)): # Do something with x... I've found it convenient in perl. Is the syntax actually supported, and I'm ignorant? Is the usage considered 'unPythonic'? Can you point me to any existing discussion of the issue (it must have come up before?)? Thanks, Peter
4821
Age (days ago)
4821
Last active (days ago)
2 comments
3 participants
participants (3)
-
Benjamin Peterson
-
Peter Hall
-
Terry Reedy