[Python-bugs-list] [ python-Bugs-405341 ] Reminder -- nested scopes TO DO list
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 19 Mar 2001 13:52:45 -0800
Bugs item #405341, was updated on 2001-03-01 18:25
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=405341&group_id=5470
Category: None
Group: None
Status: Open
>Priority: 7
Submitted By: Guido van Rossum (gvanrossum)
Assigned to: Jeremy Hylton (jhylton)
Summary: Reminder -- nested scopes TO DO list
Initial Comment:
Subject: [Python-Dev] nested scopes and future status
From: Jeremy Hylton <jeremy@alum.mit.edu>
To: python-dev@python.org
Date: Thu, 1 Mar 2001 18:34:44 -0500 (EST)
There are several loose ends in the nested scopes
changes that I won't
have time to fix before the beta. Here's a laundry
list of tasks that
remain. I don't think any of these is crucial for the
release.
Holler if there's something you'd like me to fix
tonight.
- Integrate the parsing of future statements into the
_symtable
module's interface. This interface is new with 2.1
and
undocumented, so it's deficiency here will not affect
any code.
- Update traceback.py to understand SyntaxErrors that
have a text
attribute and an offset of None. It should not print
the caret.
- PyErr_ProgramText() should be called when an
exception is printed
rather than when it is raised.
- Fix pdb to support nested scopes.
- Produce a better error message/warning for code like
this:
def f(x):
def g():
exec ...
print x
The warning message should say that exec is not
allowed in a nested
function with free variables. It currently says that
g *contains* a
nested function with free variables.
- Update the documentation.
Jeremy
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=405341&group_id=5470