Skip to content

Simple script to make python 2.7 runnable with python 3.5 syntax.

Notifications You must be signed in to change notification settings

piravp/py-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python 3.5 translator

This is a simple script that make python 2.7 runnable with python 3.5. It's written in python 3.5.

Basic Idea

The most common and time consuming problem is adding brackets to the print statements. This script runs through your .py file and replaces all print "Hello, World!" with print ("Hello, World!") in less than a second.

Using it

The script can be ran within the terminal, or using a simple (reeeally simple) user interface. To do so, run gui.py

Todos

Listed after priority.

  • Make it runnable without need to download anything else
  • Replace keywords such as xrange with range.
  • User should be able to choose which directory to write to.
  • Checkbox so users can choose if comments should be left out.
  • Make better UI. For instance PyQt.
  • print, without " " causes the program to crash - should be fixed.

Changes

To see a more detailed description of what has changed in Python 3.5, please visit: https://docs.python.org/3/whatsnew/3.5.html


About

Simple script to make python 2.7 runnable with python 3.5 syntax.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages