[Python-Dev] Core projects: 3to2

Benjamin Peterson benjamin at python.org
Thu Mar 19 01:35:16 CET 2009


2009/3/18 Antoine Pitrou <solipsis at pitrou.net>:
>
>> class C() to class C(object)
>
> __metaclass__ = type

Or even better: just inherit from object in 3.0 and 2.x. :)



-- 
Regards,
Benjamin


More information about the Python-Dev mailing list