Author StefanBauerTT
Recipients StefanBauerTT, docs@python
Date 2018-11-27.07:27:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543303624.81.0.788709270274.issue35325@psf.upfronthosting.co.za>
In-reply-to
Content
I’d like to report a discrepancy between the documentation and implementation of the method imp.find_module().

The documentation <https://docs.python.org/3.7/library/imp.html#imp.find_module> currently says “If the module does not live in a file, the returned file is None, pathname is the __empty_string__, […]”

The implementation <https://github.com/python/cpython/blob/master/Lib/imp.py#L272>, on the other hand, returns __None__ for built-in and frozen modules.

Yours,
Stefan
History
Date User Action Args
2018-11-27 07:27:04StefanBauerTTsetrecipients: + StefanBauerTT, docs@python
2018-11-27 07:27:04StefanBauerTTsetmessageid: <1543303624.81.0.788709270274.issue35325@psf.upfronthosting.co.za>
2018-11-27 07:27:04StefanBauerTTlinkissue35325 messages
2018-11-27 07:27:04StefanBauerTTcreate