Why self?

Louis M. Pecora pecora at anvil.nrl.navy.mil
Tue Jul 9 08:22:38 EDT 2002


In article <mailman.1026180494.9427.python-list at python.org>,
<jepler at unpythonic.net> wrote:

> In new-style classes, all variables are declared in __slots__.  However,
> this doesn't seem to solve the problem of referring to class attributes
> (including methods and properties), which can also currently be named
> using 'self.attr'.  A new __metaslots__ or __classslots__ ?

Hmmm...__slots__.  I really have to catch up on Python.  Thanks.

Yes, the attributes and methods are still a "problem."

-- 
Lou Pecora



More information about the Python-list mailing list