[New-bugs-announce] [issue4271] conversion tool does not fix "from Tkinter import N, E"
report at bugs.python.org
Thu Nov 6 18:31:52 CET 2008
New submission from Winfried Plappert <Winfried.Plappert at gmx.de>:
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:
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
components: 2to3 (2.x to 3.0 conversion tool)
title: conversion tool does not fix "from Tkinter import N,E"
type: compile error
versions: Python 3.0
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce