2010/1/11 Jack Diederich <jackd...@gmail.com>:
> On Mon, Jan 11, 2010 at 7:11 PM, Barry Warsaw <ba...@python.org> wrote:
>> As an example, the one library I've already ported used a metaclass.  I don't
>> see any way to specify that the metaclass should be used in a portable way.
>> In Python 2.6 it's:
>>
>> class Foo:
>>    __metaclass__ = Meta
>>
>> and in Python 3 it's:
>>
>> class Foo(metaclass=Meta):
>>
>> 2to3 made that pain go away.
>
> [sidebar]
> 1) the metaclass fixer was a PITA to implement.

Does this make it any less useful, though? :)



-- 
Regards,
Benjamin
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to