summaryrefslogtreecommitdiffstats
path: root/Doc/library/marshal.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2007-11-29 17:24:34 (GMT)
committerGeorg Brandl <georg@python.org>2007-11-29 17:24:34 (GMT)
commitba956aebb96c38f1b8818189ed6ab18d5441313a (patch)
tree8cd8aba4cf4559f7e8e2086ea9ad05b4be91187f /Doc/library/marshal.rst
parent0db38532b304c89a998e4fc53b3ac8cd7ff23a8a (diff)
downloadcpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.zip
cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.gz
cpython-ba956aebb96c38f1b8818189ed6ab18d5441313a.tar.bz2
Remove mentions of "long integer" in the docs.
Credits to HappySmileMan from GHOP.
Diffstat (limited to 'Doc/library/marshal.rst')
-rw-r--r--Doc/library/marshal.rst15
1 files changed, 2 insertions, 13 deletions
diff --git a/Doc/library/marshal.rst b/Doc/library/marshal.rst
index bc43184..8f669b2 100644
--- a/Doc/library/marshal.rst
+++ b/Doc/library/marshal.rst
@@ -37,24 +37,13 @@ supports a substantially wider range of objects than marshal.
Not all Python object types are supported; in general, only objects whose value
is independent from a particular invocation of Python can be written and read by
-this module. The following types are supported: ``None``, integers, long
-integers, floating point numbers, strings, Unicode objects, tuples, lists, sets,
+this module. The following types are supported: ``None``, integers,
+floating point numbers, strings, Unicode objects, tuples, lists, sets,
dictionaries, and code objects, where it should be understood that tuples, lists
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).
-.. 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.