No "side effect" assignment!

Tobiah toby at rcsreg.com
Mon Sep 15 03:24:34 CEST 2003


Erik Max Francis wrote:
> Andrew Koenig wrote:
> 
> 
>>How about this instead:
>>
>>        def make_generator(func):
>>            while x = func():
> 
>                     ^^^^^^^^^^
> 
> Not too likely in Python :-).
> 

  Heh!  My point exactly :)





More information about the Python-list mailing list