Python Forum
If Python 2.x source code and applies a transform it into valid Python 3.x code.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If Python 2.x source code and applies a transform it into valid Python 3.x code.
#1
I have changed between the versions, showing how to change from Python 2-style to Python 3.1-style.

I'm getting a SyntaxError on a file that was generated by the system itself Django/config/_init_.py.
Reply
#2
Please show offending code.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mathematica code vs Python MiloChocolatito 1 868 2 hours ago
Last Post: Arush
  Error on import: SyntaxError: source code string cannot contain null bytes kirkwilliams2049 10 21,771 May-26-2025, 01:55 PM
Last Post: deanhystad
  smbus.SMBus i2c code which worked to v.3.7.3 does not on Python 3.11.2 NewbyTyro 2 610 May-12-2025, 03:51 PM
Last Post: NewbyTyro
  python code not running Azdaghost 1 420 Apr-22-2025, 08:44 PM
Last Post: deanhystad
  I am getting an IndentError on my python code in VS Code and i dont know why jcardenas1980 11 6,167 Mar-22-2025, 09:49 AM
Last Post: Pedroski55
  Transform 3 Columns into Single Column DaveG 9 3,820 Mar-19-2025, 03:46 AM
Last Post: robbert23
  I trying to automate the Variable Logon button using the python code but I couldn't surendrasamudrala 0 377 Mar-07-2025, 05:02 AM
Last Post: surendrasamudrala
  How do i run python code? smattiko83 5 1,169 Mar-06-2025, 09:20 PM
Last Post: ArchieLinux
  I'm new to Python - can someone help with this code as it is not working? lminc123 1 664 Feb-13-2025, 06:13 PM
Last Post: lminc123
  Transform a pdf to markdown zzied 0 447 Feb-11-2025, 10:22 AM
Last Post: zzied

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020