Nov-19-2022, 06:47 AM
(Nov-19-2022, 02:18 AM)Larz60+ Wrote: you can try and run the enire code through 2to3
which is an Automated python 2.x to 3.x converter.
see: https://docs.python.org/3/library/2to3.html in python 3.11 documetation.
Sorry, but this answer is of no help to me.
- The problem occurs on Python 2.7, not just 3.x. NB This is a really old code base; it was written over 16 years ago (checked in to CVS(!) October 6 2006). I'm asking about really old versions of Python, probably 2.2, but definitely older than 2.5
- The 2to3 converter does nothing with these constructs. In fact, the only thing it recognises as needing changing is the print statement.
Anyone else any insights into semantics of old versions of Python? Can I run them online somewhere?