PEP 255: Simple Generators

Paul Prescod paulp at ActiveState.com
Tue Jun 19 20:11:28 CEST 2001


Neil Schemenauer wrote:
> 
>...
> 
>     def f():
>         return x
>         x = 1
> 
> Is "x" a local variable?  Most of your arguments apply to local
> variables as well.

Yes, but lets not compound our mistakes. :)

-- 
Take a recipe. Leave a recipe.  
Python Cookbook!  http://www.ActiveState.com/pythoncookbook




More information about the Python-list mailing list