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
  python code not running Azdaghost 1 261 Apr-22-2025, 08:44 PM
Last Post: deanhystad
  Mathematica code vs Python MiloChocolatito 0 508 Mar-31-2025, 06:32 AM
Last Post: MiloChocolatito
  I am getting an IndentError on my python code in VS Code and i dont know why jcardenas1980 11 4,624 Mar-22-2025, 09:49 AM
Last Post: Pedroski55
  Transform 3 Columns into Single Column DaveG 9 3,607 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 298 Mar-07-2025, 05:02 AM
Last Post: surendrasamudrala
  How do i run python code? smattiko83 5 721 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 559 Feb-13-2025, 06:13 PM
Last Post: lminc123
  Transform a pdf to markdown zzied 0 365 Feb-11-2025, 10:22 AM
Last Post: zzied
  Python: How to import data from txt, instead of running the data from the code? Melcu54 1 667 Dec-13-2024, 06:50 AM
Last Post: Gribouillis
  I cannot create a virtual environment on visual studio code using python Willem_Aucamp316 2 3,746 Nov-27-2024, 02:20 PM
Last Post: menator01

Forum Jump:

User Panel Messages

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