mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Replace "Caveat" paragraphs by .. warning::s.
This commit is contained in:
parent
7f758c49fa
commit
bf863b17f0
5 changed files with 30 additions and 21 deletions
|
@ -42,14 +42,16 @@ and dictionaries are only supported as long as the values contained therein are
|
|||
themselves supported; and recursive lists and dictionaries should not be written
|
||||
(they will cause infinite loops).
|
||||
|
||||
**Caveat:** On machines where C's ``long int`` type has more than 32 bits (such
|
||||
as the DEC Alpha), it is possible to create plain Python integers that are
|
||||
longer than 32 bits. If such an integer is marshaled and read back in on a
|
||||
machine where C's ``long int`` type has only 32 bits, a Python long integer
|
||||
object is returned instead. While of a different type, the numeric value is the
|
||||
same. (This behavior is new in Python 2.2. In earlier versions, all but the
|
||||
least-significant 32 bits of the value were lost, and a warning message was
|
||||
printed.)
|
||||
.. warning::
|
||||
|
||||
On machines where C's ``long int`` type has more than 32 bits (such as the
|
||||
DEC Alpha), it is possible to create plain Python integers that are longer
|
||||
than 32 bits. If such an integer is marshaled and read back in on a machine
|
||||
where C's ``long int`` type has only 32 bits, a Python long integer object
|
||||
is returned instead. While of a different type, the numeric value is the
|
||||
same. (This behavior is new in Python 2.2. In earlier versions, all but the
|
||||
least-significant 32 bits of the value were lost, and a warning message was
|
||||
printed.)
|
||||
|
||||
There are functions that read/write files as well as functions operating on
|
||||
strings.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue