[Python-porting] Porting Python 2 comments to Python 3

Brett Cannon brett at python.org
Mon Jul 15 14:34:11 EDT 2019


Are these doctests or just normal comments? If it's the the former I
thought 2to3 fixed those. If it's the latter then you will probably have to
take 2to3 and use it to write your own code rewriter to update the comments.

On Mon, Jul 15, 2019 at 4:59 AM Fenil Mehta <fenilgmehta at gmail.com> wrote:

> Hi,
>
> I am working on a large project with lots of comments having Python 2
> program along with program explanations.
> I want to port all the Python 2 statements in comments to Python 3
> automatically.
> Please suggest some ways to do this. Thanks in advance.
>
> Regards,
> Fenil Mehta
> _______________________________________________
> Python-porting mailing list
> Python-porting at python.org
> https://mail.python.org/mailman/listinfo/python-porting
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-porting/attachments/20190715/1455eaed/attachment.html>


More information about the Python-porting mailing list