This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: new keyword-only function parameters interact badly with nested functions
Type: behavior Stage:
Components: Interpreter Core Versions: Python 3.0
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: _doublep, amaury.forgeotdarc, christian.heimes, georg.brandl, gvanrossum
Priority: normal Keywords:

Created on 2007-11-08 21:00 by _doublep, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test.py _doublep, 2007-11-08 21:00
Messages (8)
msg57277 - (view) Author: Paul Pogonyshev (_doublep) Date: 2007-11-08 21:00
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.
msg57296 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2007-11-09 04:51
I think I agree this is a bug.
Who is setting all bugs to 'accepted'?
msg57302 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-09 13:50
I set this bug to accepted because I was able to reproduce it yesterday.
It's all in the history. Scroll down, pal! :)
msg57303 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-11-09 14:22
I think you misunderstood the meaning of "accepted" in our tracker
- it may mean "I confirm that this is a bug" somewhere else, here it means
"patch accepted".
msg57307 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-09 15:11
Oh, I misinterpreted the meaning of accepted. Can somebody please add a
"confirmed" resolution?
msg57313 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2007-11-09 16:25
Please discuss that in the meta tracker (see the "report tracker
problem" link in the sidebar).
msg57314 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2007-11-09 17:04
> Please discuss that in the meta tracker (see the "report tracker
> problem" link in the sidebar).

Done
http://psf.upfronthosting.co.za/roundup/meta/issue167
msg57796 - (view) Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * (Python committer) Date: 2007-11-24 00:29
Corrected as r59155.
Thanks for the report!
History
Date User Action Args
2022-04-11 14:56:28adminsetgithub: 45750
2008-01-06 22:29:45adminsetkeywords: - py3k
versions: Python 3.0
2007-11-24 00:29:51amaury.forgeotdarcsetstatus: open -> closed
nosy: + amaury.forgeotdarc
resolution: fixed
messages: + msg57796
2007-11-09 17:04:15christian.heimessetmessages: + msg57314
2007-11-09 16:25:51georg.brandlsetmessages: + msg57313
2007-11-09 15:11:03christian.heimessetmessages: + msg57307
2007-11-09 14:22:27georg.brandlsetnosy: + georg.brandl
messages: + msg57303
2007-11-09 13:50:39christian.heimessetnosy: + christian.heimes
messages: + msg57302
2007-11-09 04:51:33gvanrossumsetresolution: accepted -> (no value)
messages: + msg57296
nosy: + gvanrossum
2007-11-08 22:22:08christian.heimessetpriority: normal
keywords: + py3k
resolution: accepted
2007-11-08 21:00:02_doublepcreate