[Python-ideas] [Python-Dev] relative import circular problem

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Apr 6 01:46:34 CEST 2013


Guido van Rossum wrote:
> 
> On Thu, Apr 4, 2013 at 9:26 AM, Richard Oudkerk <shibturn at gmail.com> wrote:
> 
>>    import .moduleX
> 
> We considered that when relative import was designed and rejected it,
> because it violates the expectation that after "import <some string>"
> you can use exactly "<some string>" in your code.

How about requiring an "as" clause, then?

-- 
Greg



More information about the Python-ideas mailing list