mirror of
https://github.com/python/cpython.git
synced 2025-08-12 12:58:50 +00:00
#documentation update for issue4903 -
svn merge -c68535 http://svn.python.org/projects/python/trunk svn merge -c69159 http://svn.python.org/projects/python/trunk
This commit is contained in:
parent
339f8c6fe1
commit
8c6b5040a3
1 changed files with 3 additions and 3 deletions
|
@ -120,17 +120,17 @@ The :mod:`binascii` module defines the following functions:
|
||||||
To generate the same numeric value across all Python versions and
|
To generate the same numeric value across all Python versions and
|
||||||
platforms use crc32(data) & 0xffffffff. If you are only using
|
platforms use crc32(data) & 0xffffffff. If you are only using
|
||||||
the checksum in packed binary format this is not necessary as the
|
the checksum in packed binary format this is not necessary as the
|
||||||
return value will have the correct 32bit binary representation
|
return value is the correct 32bit binary representation
|
||||||
regardless of sign.
|
regardless of sign.
|
||||||
|
|
||||||
.. versionchanged:: 2.6
|
.. versionchanged:: 2.6
|
||||||
The return value will always be in the range [-2**31, 2**31-1]
|
The return value is in the range [-2**31, 2**31-1]
|
||||||
regardless of platform. In the past the value would be signed on
|
regardless of platform. In the past the value would be signed on
|
||||||
some platforms and unsigned on others. Use & 0xffffffff on the
|
some platforms and unsigned on others. Use & 0xffffffff on the
|
||||||
value if you want it to match 3.0 behavior.
|
value if you want it to match 3.0 behavior.
|
||||||
|
|
||||||
.. versionchanged:: 3.0
|
.. versionchanged:: 3.0
|
||||||
The return value will always be unsigned and in the range [0, 2**32-1]
|
The return value is unsigned and in the range [0, 2**32-1]
|
||||||
regardless of platform.
|
regardless of platform.
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue