summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1996-06-26 19:29:21 (GMT)
committerGuido van Rossum <guido@python.org>1996-06-26 19:29:21 (GMT)
commit1dead9bd0a492ad129079f5c33ad79cf21c52efd (patch)
treed9caf0f33b1ec69902fc4bdef98c8747d0619af4 /Doc
parentb7c6620e7f5b32652ed075a1eeb73c7ef2a6a0dc (diff)
downloadcpython-1dead9bd0a492ad129079f5c33ad79cf21c52efd.zip
cpython-1dead9bd0a492ad129079f5c33ad79cf21c52efd.tar.gz
cpython-1dead9bd0a492ad129079f5c33ad79cf21c52efd.tar.bz2
Added __doc__ to predefined module attributes.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/ref/ref3.tex9
-rw-r--r--Doc/ref3.tex9
2 files changed, 12 insertions, 6 deletions
diff --git a/Doc/ref/ref3.tex b/Doc/ref/ref3.tex
index 60af2dc..e017e26 100644
--- a/Doc/ref/ref3.tex
+++ b/Doc/ref/ref3.tex
@@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary.
-Special read-only attributes: \verb@__dict__@ yields the module's name
-space as a dictionary object; \verb@__name__@ yields the module's name
-as a string object.
+Special read-only attribute: \verb@__dict__@ yields the module's name
+space as a dictionary object. Predefined attributes: \verb@__name__@
+yields the module's name as a string object; \verb@__doc__@ yields the
+module's documentation string as a string object, or
+\verb@None@ if no documentation string was found.
\ttindex{__dict__}
\ttindex{__name__}
+\ttindex{__doc__}
\indexii{module}{name space}
\item[Classes]
diff --git a/Doc/ref3.tex b/Doc/ref3.tex
index 60af2dc..e017e26 100644
--- a/Doc/ref3.tex
+++ b/Doc/ref3.tex
@@ -399,11 +399,14 @@ is done).
Attribute assignment update the module's name space dictionary.
-Special read-only attributes: \verb@__dict__@ yields the module's name
-space as a dictionary object; \verb@__name__@ yields the module's name
-as a string object.
+Special read-only attribute: \verb@__dict__@ yields the module's name
+space as a dictionary object. Predefined attributes: \verb@__name__@
+yields the module's name as a string object; \verb@__doc__@ yields the
+module's documentation string as a string object, or
+\verb@None@ if no documentation string was found.
\ttindex{__dict__}
\ttindex{__name__}
+\ttindex{__doc__}
\indexii{module}{name space}
\item[Classes]