This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author wplappert
Recipients wplappert
Date 2008-11-06.17:31:50
SpamBayes Score 1.5939566e-05
Marked as misclassified No
Message-id <1225992712.67.0.232141095111.issue4271@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2008-11-06 17:31:52wplappertsetrecipients: + wplappert
2008-11-06 17:31:52wplappertsetmessageid: <1225992712.67.0.232141095111.issue4271@psf.upfronthosting.co.za>
2008-11-06 17:31:52wplappertlinkissue4271 messages
2008-11-06 17:31:51wplappertcreate