[Python-checkins] CVS: python/dist/src/Doc/lib libbinascii.tex,1.15,1.16
Guido van Rossum
guido@cnri.reston.va.us
Wed, 16 Feb 2000 16:13:39 -0500 (EST)
Update of /projects/cvsroot/python/dist/src/Doc/lib
In directory eric:/projects/python/develop/guido/Doc/lib
Modified Files:
libbinascii.tex
Log Message:
Added docs for new crc32() function. By Jim Ahlstrom.
(Fred, please check.)
Index: libbinascii.tex
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Doc/lib/libbinascii.tex,v
retrieving revision 1.15
retrieving revision 1.16
diff -C2 -r1.15 -r1.16
*** libbinascii.tex 1999/04/23 15:42:36 1.15
--- libbinascii.tex 2000/02/16 21:13:37 1.16
***************
*** 72,75 ****
--- 72,87 ----
\var{crc} and returning the result.
\end{funcdesc}
+
+ \begin{funcdesc}{crc32}{data\optional{, crc}}
+ Compute CRC-32, the 32-bit checksum of data, starting with an initial
+ crc. This is consistent with the ZIP file checksum. Use as follows:
+ \begin{verbatim}
+ print binascii.crc32("hello world")
+ # Or, in two pieces:
+ crc = binascii.crc32("hello")
+ crc = binascii.crc32(" world", crc)
+ print crc
+ \end{verbatim}
+ \end{funcdesc}
\begin{excdesc}{Error}