]> granicus.if.org Git - python/commitdiff
[Patch #476612] Change docs to describe PEP247 interface
authorAndrew M. Kuchling <amk@amk.ca>
Fri, 2 Nov 2001 21:44:09 +0000 (21:44 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Fri, 2 Nov 2001 21:44:09 +0000 (21:44 +0000)
Doc/lib/libmd5.tex
Doc/lib/libsha.tex

index 702b2bb54b5df3f36ec999ea204a202022ba1165..6f837b4e89a6adbd886bb81029a1f5071a5949ad 100644 (file)
@@ -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.
index ca1aac49a1504a733473d9413a3600ce8738e10a..d9d7bf2059e47331b32ecc33cd3d83c96197a415 100644 (file)
@@ -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}