Message75571
I tried to check the tracker for an existing issue with the conversion
tool, but I could not find one. I am using the "python2.6
Python2.6/Tools/scripts/2to3 -w -v ." command to convert existing Python
scripts to Python3.0.
I made two observations:
1. Tkinter
from Tkinter import (N, E, ...) does NOT get translated to
from tkinter import (N, E, ...)
2. 2to3 produces relative imports for stuff which lives in the same
directory, but trying to compile the stuff, I get the error:
org: from global_stuff import *
2t3: from .global_stuff import *
ValueError: Attempted relative import in non-package |
|
Date |
User |
Action |
Args |
2008-11-06 17:31:52 | wplappert | set | recipients:
+ wplappert |
2008-11-06 17:31:52 | wplappert | set | messageid: <1225992712.67.0.232141095111.issue4271@psf.upfronthosting.co.za> |
2008-11-06 17:31:52 | wplappert | link | issue4271 messages |
2008-11-06 17:31:51 | wplappert | create | |
|