Title: inspect documentation describes module type inaccurately
Type: Stage: patch review
Components: Documentation Versions: Python 3.4, Python 3.5
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, eric.snow, furkanonder, ncoghlan
Priority: normal Keywords: patch

Created on 2014-06-14 19:58 by eric.snow, last changed 2020-04-11 13:31 by furkanonder.

Pull Requests
URL Status Linked Edit
PR 19097 open furkanonder, 2020-03-21 01:17
Messages (3)
msg220576 - (view) Author: Eric Snow (eric.snow) * (Python committer) Date: 2014-06-14 19:58
In the documentation for the inspect module, the module type is described with just 2 of its potential 7 attributes.  The language reference[2] and importlib docs[3] both provide an accurate list of module attributes.

Furthermore, the description for __file__ should be fixed.  It should be clear that __file__ reflects the location from which the module was loaded, that location is not necessarily a filename, and the attribute may not exist if the module was not loaded from a specific location (e.g. builtin and frozen modules).  The same goes for __cached__

msg364831 - (view) Author: Furkan Onder (furkanonder) * Date: 2020-03-22 23:29
I sent a PR to fix a __file__ description.
msg366210 - (view) Author: Furkan Onder (furkanonder) * Date: 2020-04-11 13:31
PR has been sent.
Date User Action Args
2020-04-11 13:31:40furkanondersetmessages: + msg366210
2020-03-22 23:29:08furkanondersetmessages: + msg364831
2020-03-21 01:17:40furkanondersetkeywords: + patch
nosy: + furkanonder

pull_requests: + pull_request18457
stage: needs patch -> patch review
2020-03-18 18:05:30brett.cannonsetnosy: - brett.cannon
2014-06-14 20:16:28eric.snowsetnosy: + brett.cannon, ncoghlan
2014-06-14 19:58:13eric.snowcreate