diff options
author | Guido van Rossum <guido@python.org> | 2007-08-17 00:24:54 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2007-08-17 00:24:54 (GMT) |
commit | da27fd267346e213512f4835dd0b7b40e6172bbe (patch) | |
tree | 8f9f7dbafb09976c7dbe412992e9270f62455246 /Doc/library/marshal.rst | |
parent | af554a0e17ceb0e6a3cc0c07e9cf6db2f80c1ad9 (diff) | |
download | cpython-da27fd267346e213512f4835dd0b7b40e6172bbe.zip cpython-da27fd267346e213512f4835dd0b7b40e6172bbe.tar.gz cpython-da27fd267346e213512f4835dd0b7b40e6172bbe.tar.bz2 |
Manually patched a few things that didn't get merged in, but should.
Diffstat (limited to 'Doc/library/marshal.rst')
-rw-r--r-- | Doc/library/marshal.rst | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst index 010ebc3..6927067 100644 --- a/Doc/library/marshal.rst +++ b/Doc/library/marshal.rst @@ -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. |