[issue1409] new keyword-only function parameters interact badly with nested functions

Paul Pogonyshev report at bugs.python.org
Thu Nov 8 22:00:02 CET 2007


New submission from Paul Pogonyshev:

Attached scripts fails with 'NameError: free variable 'a' referenced
before assignment in enclosing scope'.  If you remove '*' in function
parameter list, it works.  I think it is a bug.

----------
components: Interpreter Core
files: test.py
messages: 57277
nosy: _doublep
severity: normal
status: open
title: new keyword-only function parameters interact badly with nested functions
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file8716/test.py

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1409>
__________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.py
Type: text/x-python
Size: 191 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-bugs-list/attachments/20071108/e102fc99/attachment.py 


More information about the Python-bugs-list mailing list