python 2 to 3 converter
jfong at ms4.hinet.net
jfong at ms4.hinet.net
Sun Dec 8 21:51:50 EST 2019
Greg Ewing於 2019年12月9日星期一 UTC+8上午6時18分32秒寫道:
> On 8/12/19 9:30 pm, songbird wrote:
> > wouldn't it make more sense to just go back and fix the
> > converter program than to have to manually convert all this
> > python2 code?
>
> Anything that isn't already fixed by 2to3 is probably
> somewhere between very difficult and impossible to fix
> using an automated process. It sounds like an interesting
> project, but be aware that it's probably an AI-complete
> problem.
>
> --
> Greg
Even string is hard to be handled by the AI:-)
Quoted from https://portingguide.readthedocs.io/en/latest/strings.html
" ... This means that you need to go through the entire codebase, and decide which value is what type. Unfortunately, this process generally cannot be automated."
--Jach
More information about the Python-list
mailing list