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
  Problem Converting Tradingview Indicator to Python code kralxs 1 175 Yesterday, 06:10 PM
Last Post: kralxs
  Equivalent Python code from VBA Mishal0488 2 800 Apr-19-2024, 10:32 AM
Last Post: masonsbore
  delivery exe without source code py loky62 2 359 Apr-04-2024, 05:47 PM
Last Post: loky62
  Why can I not see the code correctly in Python IDLE.? Trump 8 727 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
Sad Selenium update broke python code genericusername12414 1 255 Mar-16-2024, 07:33 PM
Last Post: snippsat
  Algorithm for extracting comments from Python source code Pavel1982 6 556 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  Python best library for Excel reports & review of existing code MasterOfDestr 4 685 Feb-14-2024, 03:39 PM
Last Post: MasterOfDestr
Lightbulb python code debuging yunus 1 346 Feb-11-2024, 03:48 PM
Last Post: deanhystad
  Python code to set column width 1418 11 1,259 Jan-20-2024, 07:20 AM
Last Post: Pedroski55
  Python code for alignment and font size 1418 0 326 Jan-14-2024, 03:56 AM
Last Post: 1418

Forum Jump:

User Panel Messages

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