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
Title: 2to3 to simultaneously do code and doctests
Type: enhancement Stage: resolved
Components: 2to3 (2.x to 3.x conversion tool) Versions: Python 3.3
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.
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53519
2021-10-20 22:43:27iritkatrielsetresolution: works for me -> wont fix
2021-10-20 22:41:18iritkatrielsetresolution: duplicate -> works for me
2021-10-20 22:34:55iritkatrielsetstatus: open -> closed
superseder: Close 2to3 issues and list them here
resolution: duplicate
stage: needs patch -> resolved
2011-06-14 15:21:26eric.araujosetnosy: + eric.araujo
title: 2to3 to simultaneously do code AND doctests -> 2to3 to simultaneously do code and doctests
messages: + msg138327

versions: + Python 3.3
stage: needs patch
2010-08-04 09:31:13floxsetnosy: + benjamin.peterson

type: enhancement
title: 2to to simultaneously do code AND doctests -> 2to3 to simultaneously do code AND doctests
2010-07-16 15:48:43tiagoantaocreate