This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Patrick Maupin
Recipients J Richard Snape, Patrick Maupin, brett.cannon, docs@python, eric.snow, flatsieve, ncoghlan
Date 2015-10-05.17:11:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1444065104.49.0.886294230925.issue25294@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think anything is wrong with that code.  But PEP 8 prescribes a way of doing something that often won't work (which is unusual for PEP 8), with no discussion of this fact.

> I think the key thing to take away from this whole discussion is "don't have circular imports" is the key practice to follow.

If this is a "key practice" then why the heck is the recommended way to do things the one that is guaranteed to break it?

I have empirical evidence that it is surprising to some users that the semantics of "from .z import foo" and "from x.y.z import foo" are not identical -- in other words, some of them have a hard time classifying the second as a circular import but not the first.  And the documentation is silent on this.

> And if someone wants to propose a patch to update some documentation

I'll try to get to this in the next couple of weeks.

Thanks,
Pat
History
Date User Action Args
2015-10-05 17:11:44Patrick Maupinsetrecipients: + Patrick Maupin, brett.cannon, ncoghlan, docs@python, eric.snow, flatsieve, J Richard Snape
2015-10-05 17:11:44Patrick Maupinsetmessageid: <1444065104.49.0.886294230925.issue25294@psf.upfronthosting.co.za>
2015-10-05 17:11:44Patrick Maupinlinkissue25294 messages
2015-10-05 17:11:44Patrick Maupincreate