[Python-porting] Some questions about build_py_2to3

Thomas Heller theller at ctypes.org
Mon Dec 8 21:26:34 CET 2008


I have some beginners questions about distutils build_py_2to3 command:

- Can it convert doctests?  How?

- Shouldn't build_py_2to3 use a differnt build directory than the normal
build_py command?  Perhaps build/lib-3 or something like that?

- Should programming idioms that it fails to convert be reported as bugs?
Here is one example that isn't converted at all:

  class CoClass(COMObject):
      from comtypes._meta import _coclass_meta as __metaclass__


It is not obvious immeditately how the converted code should look like,
but at least the converter could issue a warning.

-- 
Thanks,
Thomas


More information about the Python-porting mailing list