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 ncoghlan
Recipients brett.cannon, docs@python, eric.snow, ncoghlan, pitrou, xmorel
Date 2017-06-03.05:30:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1496467844.5.0.49207187799.issue30535@psf.upfronthosting.co.za>
In-reply-to
Content
s/Warn/Explicitly note/ in the issue title :)

I think this is actually both important enough and subtle enough to warrant a ".. note::" callout in the docs.

In Python 3, it would say to use `sys.meta_path.insert(0, finder)` if you want your finder to take precedence over the default search locations, and `sys.meta_path.append(finder)` if you only want it handle cases that aren't already handled by the default machine.

In Python 2, it would say that custom finders on `sys.meta_path` will always take precedence over the default machinery, and if you want to do otherwise, you'll need to use `importlib2` and install its loaders into `sys.meta_path` ahead of your own.
History
Date User Action Args
2017-06-03 05:30:44ncoghlansetrecipients: + ncoghlan, brett.cannon, pitrou, xmorel, docs@python, eric.snow
2017-06-03 05:30:44ncoghlansetmessageid: <1496467844.5.0.49207187799.issue30535@psf.upfronthosting.co.za>
2017-06-03 05:30:44ncoghlanlinkissue30535 messages
2017-06-03 05:30:44ncoghlancreate