| | |
using 2to3
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 |
abrupt alarm ansi anti approximation array assignment backend beginner binary bluetooth builtin calculator character cmd converter countpasswordentry curved customdialog cx-freeze dan08 data decimals dictionary directory exe file float format function generator getvalue gnu halp heads homework http ideas input ip itunes java leftmouse line linux list lists loop maintain maze millimeter module mouse mysqlquery number numbers output parsing path pointer prime programming push py2exe pygame python queue random recursion schedule screensaverloopinactive script scrolledtext slicenotation sqlite ssh statistics string strings sudokusolver terminal text thread time tlapse tuple twoup ubuntu unicode urllib urllib2 variable ventrilo vigenere web webservice wikipedia write wxpython xlib



