| | |
using 2to3
Please support our Python advertiser: Programming Forums - DaniWeb Sister Site
this is code that thanks to vegaseat helped me convert my programs into python30
# run_2to3_convert.py # # convert a Python25 code file to a Python30 code file # generates a backup file and overwrites the original # file with the converted file # # it is best to put this file into a special directory # together with the Python25 file you want to convert # # run this program with Python30 import subprocess # the Python2x code file you want to convert ... python2x_scriptfile = "TryExcept1.py" subprocess.call([r"C:\Python30\Python.exe", r"C:\Python30\Tools\Scripts\2to3.py", "-w", python2x_scriptfile]) print('props to vegaseat for showing me this') input()
| Thread Tools | Search this Thread |
address alarm anydbm app beginner cipher conversion coordinates curves cx-freeze data development dictionary directory dynamic examples excel feet file float format function generator getvalue gui halp handling homework images import input ip itunes java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path port prime programming projects py2exe pygame pyglet pymailer python queue random recursion recursive screensaverloopinactive script scrolledtext searchingfile shebang slicenotation split ssh string strings table terminal text thread threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wx.wizard wxpython xlwt



