Scope rules in Python

Michael Hudson mwh21 at cam.ac.uk
Mon Jan 29 12:41:32 EST 2001


Fernando Rodríguez <spamers at must.die> writes:

> Hi!
> 
> 	Is there any plans to change the scope rules in Python, so that
> function B can also access everything (including itself) defined inside
> function A?:

Use Python 2.1 (tho' not the current alpha - it'll be in 2.1a2).

this-time-machines-running-backwards-ly y'rs
M.

-- 
  Indeed, when I design my killer language, the identifiers "foo" and
  "bar" will be reserved words, never used, and not even mentioned in
  the reference manual. Any program using one will simply dump core
  without comment. Multitudes will rejoice. -- Tim Peters, 29 Apr 1998



More information about the Python-list mailing list