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.

Author r.david.murray
Recipients Julian.Scheid, barry, benjamin.peterson, georg.brandl, lregebro, maubp, ncoghlan, r.david.murray
Date 2010-07-29.03:43:51
SpamBayes Score 6.8713274e-07
Marked as misclassified No
Message-id <>
2to3 can convert doctests, it just can't convert the *output* portion of doctests. because they are arbitrary strings and not syntactically valid Python code.  Since turning on this flag would require recognizing something in the output portion of the doctest (which 2to3 doesn't handle), it can't be turned on by 2to3.

On the other hand, it seems like it wouldn't be too hard to write a special purpose script to handle this specific case...since I don't know 2to3, I don't know how hard it would be to integrate such a special purpose script.  (I do remember Benjamin saying 2to3 really ought to have a plugin my guess is the answer is "not too easy").

In any case, as Nick said, that would be a separate RFE, and will likely get nowhere without someone volunteering to write the script/patch.
Date User Action Args
2010-07-29 03:43:55r.david.murraysetrecipients: + r.david.murray, barry, georg.brandl, ncoghlan, benjamin.peterson, lregebro, Julian.Scheid, maubp
2010-07-29 03:43:54r.david.murraysetmessageid: <>
2010-07-29 03:43:53r.david.murraylinkissue7490 messages
2010-07-29 03:43:51r.david.murraycreate