[Python-3000] PEP for Metaclasses in Python 3000

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


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


More information about the Python-3000 mailing list