Can GPT4 convert Python2 code to Python3?

2 points by jancsika ↗ HN
I know there is a set of open source projects written in Python2 that never got converted to Python3. And a large subset of that for which there are no plans to ever convert.

If you make a prompt to convert a few dozen of such projects to Python3, what comes out? Is it significantly closer to the finish line than nothing at all? Or are there so many dragons in the output that one might as well have started from scratch?

1 comment

[ 3.1 ms ] story [ 10.3 ms ] thread
This is a moot question because 90% of the Python2 to Python3 conversions stalled due to dependencies and not language features.