referring to package scope from module, using relative import?

Irmen de Jong irmen.NOSPAM at xs4all.nl
Sat May 21 17:32:50 EDT 2011


On 21-5-2011 22:00, Ian Kelly wrote:

> Note that PEP 8 discourages relative imports and encourages absolute
> imports, though.  This would be the preferred way to do it:
> 
> from A import something

Right. I got rid of the silly relative import stuff. As an added bonus, this makes my
original question irrelevant :)

Irmen



More information about the Python-list mailing list