[Python-bugs-list] [ python-Bugs-500704 ] Tutorial does not describe nested scope

noreply@sourceforge.net noreply@sourceforge.net
Mon, 07 Jan 2002 19:27:02 -0800


Bugs item #500704, was opened at 2002-01-07 19:27
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=500704&group_id=5470

Category: Documentation
Group: Python 2.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Pierre Rouleau (pierre_rouleau)
Assigned to: Fred L. Drake, Jr. (fdrake)
Summary: Tutorial does not describe nested scope

Initial Comment:
The current copy of the tuturial for Python 2.2 states, in chapter 9.2
(Python Scopes and Name Spaces):

"""Although scopes are determined statically, they are used dynamically.
At any time during execution, exactly three nested scopes are in use
(exactly three namespaces are directly accessible): the innermost scope,
which is searched first, contains the local names, the middle scope,
searched next, contains the current module's global names, and the
outermost scope (searched last) is the namespace containing built-in
names."""

I believe the above text should be updated to reflect the fact that Python 2.2 supports nested 
scopes.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=500704&group_id=5470