mirror of
https://github.com/python/cpython.git
synced 2025-11-02 11:08:57 +00:00
[Patch #476612] Change docs to describe PEP247 interface
This commit is contained in:
parent
75fec2c8ed
commit
bc4a1c2588
2 changed files with 11 additions and 1 deletions
|
|
@ -35,6 +35,16 @@ More condensed:
|
||||||
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
|
'\xbbd\x9c\x83\xdd\x1e\xa5\xc9\xd9\xde\xc9\xa1\x8d\xf0\xff\xe9'
|
||||||
\end{verbatim}
|
\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}}
|
\begin{funcdesc}{new}{\optional{arg}}
|
||||||
Return a new md5 object. If \var{arg} is present, the method call
|
Return a new md5 object. If \var{arg} is present, the method call
|
||||||
\code{update(\var{arg})} is made.
|
\code{update(\var{arg})} is made.
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ attributes of the sha objects returned by \function{new()}:
|
||||||
hashed.
|
hashed.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
||||||
\begin{datadesc}{digestsize}
|
\begin{datadesc}{digest_size}
|
||||||
The size of the resulting digest in bytes. This is always
|
The size of the resulting digest in bytes. This is always
|
||||||
\code{20}.
|
\code{20}.
|
||||||
\end{datadesc}
|
\end{datadesc}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue