[Python-porting] Questions regarding relative import
Lennart Regebro
regebro at gmail.com
Fri May 17 06:47:41 CEST 2013
On Thu, May 16, 2013 at 9:59 PM, Chitrank Dixit <chitrankdixit at gmail.com> wrote:
> Hello Python developers
>
> I am working on Porting to Python 2 to Python 3.3 and the refactoring using
> 2to3 says to use relative import at the place of the import. but ignoring
> the relative import does the work for both the python 2 as well as python
> 3.3
Absolute imports work in both Python 2 and Python 3, yes.
Importing from within the module requires the relative syntax in Python 3.
//Lennart
More information about the Python-porting
mailing list