2 ms·
You mean like http://docs.python.org/2/library/2to3.html http://docs.python.org/2/library/2to3.html ? Static typing arguably makes it easier to provide a deepe
by jerf 14y ago
You mean like http://docs.python.org/2/library/2to3.html http://docs.python.org/2/library/2to3.html ?
Static typing arguably makes it easier to provide a deeper and more accurate translation, but Python did at least try. And note that's a link to Python's official docs, not a side project or something; 2to3 was created by the core Python team as part of the official upgrade path, not an afterthought.
- stefantalpalaru 14y ago"Sometimes 2to3 will find a place in your source code that needs to be changed, but 2to3 cannot fix automatically. In this case, 2to3 will print a warning beneath the diff for a file. You should address the warning in order to have compliant 3.x code."
- jerf 14y agoSorry, that's goalpost hiking. You said they didn't provide an automated transition tool, not that it wasn't perfect. Go's tools will only issue warnings in some cases too, so I'm really lost as to what you think you're saying here.