SystemError when defining

Terry Reedy tjreedy at udel.edu
Fri Nov 4 20:42:02 EDT 2011


On 11/4/2011 3:10 PM, Joshua Landau wrote:
>     > >> def x(nonlocal_var):
>     ...     def y():
>     ...             z = lambda *, keyword_only=nonlocal_var: None
>     ...     return y
>     ...
>      >>> x(None)()
...
>     SystemError: no locals when loading 'nonlocal_var'
...
> Now - where shall I report this?

Joshua found bugs.python.org and, 2 hours later, a fix was applied.
http://bugs.python.org/issue13343

-- 
Terry Jan Reedy




More information about the Python-list mailing list