Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

No, it cannot be fixed in marshal itself.

s = {("string", 1), ("string", 2), ("string", 3)}

All tuples contain references to the same string. The first serialized tuple 
will contain serialization of the string, all other will contain references to 
it. So the binary representation of the tuple depends on whether it is 
serialized first on not first.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue37596>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to