[docs] [issue35325] imp.find_module() return value documentation discrepancy

Stefan Bauer (TraceTronic) report at bugs.python.org
Tue Nov 27 02:27:04 EST 2018


New submission from Stefan Bauer (TraceTronic) <stefan.bauer at tracetronic.de>:

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

----------
assignee: docs at python
components: Documentation
messages: 330495
nosy: StefanBauerTT, docs at python
priority: normal
severity: normal
status: open
title: imp.find_module() return value documentation discrepancy
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35325>
_______________________________________


More information about the docs mailing list