[Python-Dev] Why does PEP 8 advise against explicit relative imports? (original) (raw)

Nick Coghlan ncoghlan at gmail.com
Tue Jul 16 14:35:08 CEST 2013


On 16 July 2013 22:27, Nick Coghlan <ncoghlan at gmail.com> wrote:

These are good reasons, but they're not the reasons the PEP currently gives. "Better failure modes" is a good practical benefit :)

I have now included an updated rationale for this rule in the patch attached to http://bugs.python.org/issue18472 (the recommendation to use absolute imports remains unchanged).

Cheers, Nick.

-- Nick Coghlan | ncoghlan at gmail.com | Brisbane, Australia



More information about the Python-Dev mailing list