Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).

This commit is contained in:
Raymond Hettinger 2007-11-07 01:13:09 +00:00
parent 9b847b432c
commit 12e94200c0
4 changed files with 25 additions and 16 deletions

View file

@ -44,12 +44,6 @@ 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::
Some unsupported types such as subclasses of builtins will appear to marshal
and unmarshal correctly, but in fact, their type will change and the
additional subclass functionality and instance attributes will be lost.
.. warning::
On machines where C's ``long int`` type has more than 32 bits (such as the