New submission from Stefan Bauer (TraceTronic) <stefan.ba...@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@python
components: Documentation
messages: 330495
nosy: StefanBauerTT, docs@python
priority: normal
severity: normal
status: open
title: imp.find_module() return value documentation discrepancy
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue35325>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to