Inheritable Slots Metaclass

geremy condra debatem1 at gmail.com
Wed May 26 17:51:45 EDT 2010


On Wed, May 26, 2010 at 1:50 PM, Carl Banks <pavlovevidence at gmail.com> wrote:
> On May 26, 5:49 am, Rebel Lion <r38311... at gmail.com> wrote:
>> I made a metaclass to inherit __slots__ automatically.
>>
>> I think this feature should be included in builtin object's metaclass.
>
> I'd be ok with a metatype in the standard library that makes slots
> more transparent, but since slots are intended as an optimization, it
> doesn't really need (and might be detrimental to have) transparency
> for ordinary objects.
>
> However, Aahz will be by shortly to tell you never to use slots.

Ok, I'll bite: why?

Geremy Condra



More information about the Python-list mailing list