PEP 255: Simple Generators

Paul Prescod paulp at ActiveState.com
Tue Jun 19 14:11:28 EDT 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