nested scopes

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Feb 8 19:24:10 EST 2001


Tim Peters wrote:
> 
> It's curious how
> few have ever complained that a def inside a class doesn't have automagic
> access to the class locals.

But they *do* complain about having to make explicit
references to 'self', which is the analogous thing there.

-- 
Greg Ewing, Computer Science Dept, University of Canterbury,	  
Christchurch, New Zealand
To get my email address, please visit my web page:	  
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list