Overcoming herpetophobia (or what's up w/ Python scopes)?

Jordan Rastrick jrastrick at student.usyd.edu.au
Sat Jun 18 00:27:16 CEST 2005


Python's current scoping differs from that in versions 2.1 and earlier
- statically nested (lexical) scoping was introduced under PEP 227.

I don't know what differences, if any, remain between Python's and
Perl's scoping rules, or if there is any tutorial concerning Python
scoping thats aimed specifically at programmers with a Perl background.


A pretty straightfoward explanation of the change to Python scoping
rules can be found at:

http://www.python.org/doc/2.2.3/whatsnew/node9.html




More information about the Python-list mailing list