Georg Brandl wrote: > Stefan Behnel schrieb: >> I know, I could use the lib2to3 package, but it a) is a one-way tool >> in the >> wrong direction if you have to distinguish bytes/str literals, b) lacks >> configurability stating exactly what changes need to be done and c) >> seemed >> harder to set up for doctests than doing the conversion by hand. > > Shouldn't the -d option handle doctests without further set-up?
If you start 2to3 from the command prompt to convert the files that contain the doctests and copy them to a new location, then yes. But the question is: how do you run a Py2 doctest in Py3 without first copying your doctests or doctest containing sources to new files and then running the tests from there? You can't require people to put such a work-around into every test script in the world. Adding an option, fine. Copying files, adapting paths and all that, why? Stefan _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com