Message252346
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 |
|
Date |
User |
Action |
Args |
2015-10-05 17:11:44 | Patrick Maupin | set | recipients:
+ Patrick Maupin, brett.cannon, ncoghlan, docs@python, eric.snow, flatsieve, J Richard Snape |
2015-10-05 17:11:44 | Patrick Maupin | set | messageid: <1444065104.49.0.886294230925.issue25294@psf.upfronthosting.co.za> |
2015-10-05 17:11:44 | Patrick Maupin | link | issue25294 messages |
2015-10-05 17:11:44 | Patrick Maupin | create | |
|