[Python-3000] PEP for Metaclasses in Python 3000

Talin talin at acm.org
Wed Mar 14 08:09:46 CET 2007


Ack, I meant to hit cancel and not Send. Please ignore that.

Talin wrote:
> Guido van Rossum wrote:
>>> I'm a bit worried that class headers are going to become
>>> rather cluttered if we start putting all sorts of stuff
>>> in there.
>>>
>>> E.g. are you intending to put __slots__ there? It makes
>>> sense, but it could lead to some rather long and
>>> unwieldy class headers.
>> It makes sense to put slots there, doesn't it? I'm not too worried
>> about the long class headers; a formatting convention can do wonders
>> here.
> 
> Actually, with the new system of metaclasses, we might not need 
> __slots__ anymore:
> 
>     class Foo(metaclass=Slottabl
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/talin%40acm.org
> 


More information about the Python-3000 mailing list