[Import-SIG] PEP proposal: Per-Module Import Path
Eric Snow
ericsnowcurrently at gmail.com
Wed Jul 31 22:40:00 CEST 2013
On Wed, Jul 31, 2013 at 6:29 AM, Brett Cannon <brett at python.org> wrote:
> On Wed, Jul 31, 2013 at 2:41 AM, Eric Snow <ericsnowcurrently at gmail.com>wrote:
>
>> I'll make it more clear in the PEP that refpath resolution is
>> depth-first--a consequence of doing normal loader lookup. This means that
>> in the face of a cycle the normal package/module/ns package handling
>> happens rather than acting like there was an empty .ref file (but only if
>> no other path entries in the .ref file pan out first). Would it be better
>> to treat this case the same as an empty .ref file?
>>
>
> I would argue a cycle is an error and you should raise ImportError.
>
I'll make a point of this. An ImportError makes sense. Either way I'll
provide some rationale.
-eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/import-sig/attachments/20130731/4bd4b86a/attachment.html>
More information about the Import-SIG
mailing list