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.
Created on 2008年11月06日 17:31 by wplappert, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Messages (5) | |||
|---|---|---|---|
| msg75571 - (view) | Author: Winfried Plappert (wplappert) | Date: 2008年11月06日 17:31 | |
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 |
|||
| msg75572 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年11月06日 17:59 | |
The relative import problem has been fixed that will be released in 2.6.1. |
|||
| msg75573 - (view) | Author: Winfried Plappert (wplappert) | Date: 2008年11月06日 18:04 | |
and it is also fixed in 3.0rc1: I reran the conversion, but issue 2 still persists, |
|||
| msg75574 - (view) | Author: Winfried Plappert (wplappert) | Date: 2008年11月06日 18:05 | |
Sorry, issue 1 still persists: From Tkinter import (bla,blah, blahh) |
|||
| msg75642 - (view) | Author: Benjamin Peterson (benjamin.peterson) * (Python committer) | Date: 2008年11月08日 18:29 | |
The other problem is fixed in r67170. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:41 | admin | set | github: 48521 |
| 2008年11月08日 18:29:05 | benjamin.peterson | set | status: open -> closed resolution: fixed messages: + msg75642 |
| 2008年11月06日 18:06:41 | benjamin.peterson | set | priority: high |
| 2008年11月06日 18:05:54 | wplappert | set | messages: + msg75574 |
| 2008年11月06日 18:04:44 | wplappert | set | messages: + msg75573 |
| 2008年11月06日 17:59:32 | benjamin.peterson | set | type: compile error -> behavior messages: + msg75572 nosy: + benjamin.peterson |
| 2008年11月06日 17:31:52 | wplappert | create | |