summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2001-11-02 21:44:09 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2001-11-02 21:44:09 (GMT)
commitbc4a1c258846c6e40ccf956d5dc2c9d0170b2bf2 (patch)
tree9d25310bf49737d3771c7def9db00613045a4323 /Doc/lib
parent75fec2c8edd4cc673abf44d032ede17a63657ec1 (diff)
downloadcpython-bc4a1c258846c6e40ccf956d5dc2c9d0170b2bf2.zip
cpython-bc4a1c258846c6e40ccf956d5dc2c9d0170b2bf2.tar.gz
cpython-bc4a1c258846c6e40ccf956d5dc2c9d0170b2bf2.tar.bz2
[Patch #476612] Change docs to describe PEP247 interface
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libmd5.tex10
-rw-r--r--Doc/lib/libsha.tex2
2 files changed, 11 insertions, 1 deletions
diff --git a/Doc/lib/libmd5.tex b/Doc/lib/libmd5.tex
index 702b2bb..6f837b4 100644
--- a/Doc/lib/libmd5.tex
+++ b/Doc/lib/libmd5.tex
@@ -35,6 +35,16 @@ More condensed:
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
\end{verbatim}
+The following values are provided as constants in the module and as
+attributes of the md5 objects returned by \function{new()}:
+
+\begin{datadesc}{digest_size}
+ The size of the resulting digest in bytes. This is always
+ \code{16}.
+\end{datadesc}
+
+md5 objects support the following methods:
+
\begin{funcdesc}{new}{\optional{arg}}
Return a new md5 object. If \var{arg} is present, the method call
\code{update(\var{arg})} is made.
diff --git a/Doc/lib/libsha.tex b/Doc/lib/libsha.tex
index ca1aac4..d9d7bf2 100644
--- a/Doc/lib/libsha.tex
+++ b/Doc/lib/libsha.tex
@@ -31,7 +31,7 @@ attributes of the sha objects returned by \function{new()}:
hashed.
\end{datadesc}
-\begin{datadesc}{digestsize}
+\begin{datadesc}{digest_size}
The size of the resulting digest in bytes. This is always
\code{20}.
\end{datadesc}