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
  is this a valid variable name? Skaperen 6 348 Jun-05-2024, 10:13 PM
Last Post: Skaperen
  Python Code Help - pip install PyMuPDF python-docx pillow Splishsplash92 3 241 Jun-05-2024, 06:49 AM
Last Post: Pedroski55
  python code to calculate mean of an array of numbers using numpy viren 3 211 May-29-2024, 04:49 PM
Last Post: Gribouillis
  Equivalent Python code from VBA Mishal0488 4 1,151 May-02-2024, 10:17 PM
Last Post: DeaD_EyE
  Problem Converting Tradingview Indicator to Python code kralxs 1 418 Apr-27-2024, 06:10 PM
Last Post: kralxs
  delivery exe without source code py loky62 2 444 Apr-04-2024, 05:47 PM
Last Post: loky62
  Why can I not see the code correctly in Python IDLE.? Trump 8 911 Apr-04-2024, 07:47 AM
Last Post: jonesphedra
Sad Selenium update broke python code genericusername12414 1 363 Mar-16-2024, 07:33 PM
Last Post: snippsat
  Algorithm for extracting comments from Python source code Pavel1982 6 796 Feb-28-2024, 09:52 PM
Last Post: Pavel1982
  Python best library for Excel reports & review of existing code MasterOfDestr 4 1,033 Feb-14-2024, 03:39 PM
Last Post: MasterOfDestr

Forum Jump:

User Panel Messages

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