Inheritable Slots Metaclass

Carl Banks pavlovevidence at gmail.com
Wed May 26 18:42:43 EDT 2010


On May 26, 2:51 pm, geremy condra <debat... at gmail.com> wrote:
> On Wed, May 26, 2010 at 1:50 PM, Carl Banks <pavlovevide... 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?

I was just razzing him a bit.


Carl Banks



More information about the Python-list mailing list