Does Python really follow its philosophy of "Readability counts"?

Roy Smith roy at panix.com
Mon Jan 12 15:22:41 CET 2009


In article <7x1vv83afq.fsf at ruckus.brouhaha.com>,
 Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:

> bieffe62 at gmail.com writes:
> > >    class Foo (DynamicAttributes, object): pass
> > >
> > You cannot do that, but you can establish a fixed set of attributes by
> > defining the __slot__ class variable.
> 
> That is not what __slot__ is for.

Right.  And tuples are not immutable lists (ducking and covering).



More information about the Python-list mailing list