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.

Title: Fatal Python error: unknown scope
Type: Stage:
Components: Interpreter Core Versions: Python 2.3
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: jhylton Nosy List: imbaczek, jhylton, mwh
Priority: normal Keywords:

Created on 2003-08-06 10:25 by imbaczek, last changed 2022-04-10 16:10 by admin. This issue is now closed.

File name Uploaded Description Edit
def-arg-arg-arg.diff mwh, 2003-08-06 12:34 fix #1
Messages (4)
msg17651 - (view) Author: Marek Baczynski (imbaczek) Date: 2003-08-06 10:25
The code:

def g(a=None, b, c=lambda: None): g

Python 2.3/Win98, confirmed in current CVS.
msg17652 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-08-06 10:38
Logged In: YES 


Probably the best thing to do is check for "non-default
argument follows default argument" *before* doing the
symtable thing.

The relavent code is confusing, though.
msg17653 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2003-08-06 12:34
Logged In: YES 

No, hang on, I meant to attach my fix before doing that.

This code cannot possibly die soon enough.
msg17654 - (view) Author: Jeremy Hylton (jhylton) (Python triager) Date: 2003-08-28 14:45
Logged In: YES 

Fixed in rev. 2.292 of Python/compile.c.
Date User Action Args
2022-04-10 16:10:30adminsetgithub: 39022
2003-08-06 10:25:38imbaczekcreate