Does Python really follow its philosophy of "Readability counts"?
steve at holdenweb.com
Tue Jan 13 07:33:55 CET 2009
bieffe62 at gmail.com wrote:
> On 12 Gen, 14:45, Paul Rubin <http://phr...@NOSPAM.invalid> wrote:
>> bieff... 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.
> Really? It seems to work:
So does using a butt-plug to seal a bottle of wine, but that's still not
what it's for.
Steve Holden +1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
More information about the Python-list