[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Update Python 2.7 project to work with Python 3



You can try the 2to3 command line tool included as part of Python: https://docs.python.org/3/library/2to3.html

This can quickly and reliably do the simple, repetitive work like changing 'print x' to 'print(x)' for Python 3. But you'll probably still need to spend a while manually debugging the code on Python 3, because not everything can easily be fixed by an automatic tool.

Thomas

On Tue, 27 Apr 2021 at 07:25, Jeff Mitchell <chat@xxxxxxxxxxxxxxxxxxx> wrote:

Is there an easy way to update an old project (https://sourceforge.net/projects/twodracing/) to work with the latest Python/Pygame? I'd like to get this 2D driving simulator to run.