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

Fenil Mehta fenilgmehta at gmail.com
Wed Jul 17 23:04:24 EDT 2019


Hi,

Unfortunately it's the latter. So, I will have to write a module for it.
Thanks for the suggestion.

Regards,
Fenil Mehta


On Tue, Jul 16, 2019 at 12:04 AM Brett Cannon <brett at python.org> wrote:

> 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/20190718/b6ac7039/attachment.html>


More information about the Python-porting mailing list