[Python-porting] Some questions about build_py_2to3

Thomas Heller theller at ctypes.org
Mon Dec 8 21:54:35 CET 2008


[sorry, forgto to cc the list]

Lennart Regebro schrieb:
> > On Mon, Dec 8, 2008 at 21:26, Thomas Heller <theller at ctypes.org> wrote:
>> >> Here is one example that isn't converted at all:
>> >>
>> >>  class CoClass(COMObject):
>> >>      from comtypes._meta import _coclass_meta as __metaclass__
> > 
> > Uhm. Is that supposed to be a obfuscated trick for:

Yes it is.

> > 
> > from comtypes._meta import _coclass_meta
> > 
> > class CoClass(COMObject):
> >       __metaclass__ = _coclass_meta
> > 
> > Because if it is I think it's better it's unobfoscated instead.
> > 
This may be true.  Anyway, it is actual working code that the converter fails to convert.

-- Thanks, Thomas 


More information about the Python-porting mailing list