From a1b76e5dccb09a3a1f5dfdfc775a0367c663ffa0 Mon Sep 17 00:00:00 2001 From: Michael Anckaert Date: Wed, 14 Aug 2019 20:57:36 +0200 Subject: [PATCH] Updated documentation for inspect module: some module attributes were missing --- Doc/library/inspect.rst | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst index ed95c72c9a626d..bf03e83db1ef8f 100644 --- a/Doc/library/inspect.rst +++ b/Doc/library/inspect.rst @@ -40,11 +40,27 @@ attributes: +-----------+-------------------+---------------------------+ | Type | Attribute | Description | +===========+===================+===========================+ -| module | __doc__ | documentation string | +| module | __cached__ | the path where a compiled | +| | | version is stored | ++-----------+-------------------+---------------------------+ +| | __doc__ | documentation string | +-----------+-------------------+---------------------------+ | | __file__ | filename (missing for | | | | built-in modules) | +-----------+-------------------+---------------------------+ +| | __loader__ | loader used to load the | +| | | module | ++-----------+-------------------+---------------------------+ +| | __name__ | name of the module | ++-----------+-------------------+---------------------------+ +| | __path__ | list of strings specifying| +| | | the search path within a | +| | | package (not set for | +| | | modules) | ++-----------+-------------------+---------------------------+ +| | __package__ | parent package for the | +| | | module/package | ++-----------+-------------------+---------------------------+ | class | __doc__ | documentation string | +-----------+-------------------+---------------------------+ | | __name__ | name with which this |