mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
This commit is contained in:
parent
9b847b432c
commit
12e94200c0
4 changed files with 25 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue