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 -- https://mail.python.org/mailman/listinfo/python-list