Issue 9273: 2to3 to simultaneously do code and doctests - Python tracker

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
process
Status: closed Resolution: wont fix
Dependencies: Superseder: Close 2to3 issues and list them here
View: 45544
Assigned To: Nosy List: benjamin.peterson, eric.araujo, tiagoantao
Priority: normal Keywords:

Created on 2010-07-16 15:48 by tiagoantao, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (2)
msg110457 - (view) Author: Tiago Antao (tiagoantao) * Date: 2010-07-16 15:48
Currently 2to3 has to be called twice in order to do a full code conversion: one for the code and another for the doctests.

Would it be possible to do both things simultaneously (on passing a flag)?

It would be nice if distutils.command.build_py.build_py_2to3 would also have this functionality (ie a single pass for both code and docutils)

Thanks
msg138327 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2011-06-14 15:21
For the 2to3 support in the new packaging module (successor of distutils), we even do three passes: code, docstrings and doctest files.