Message400156
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. |
|
Date |
User |
Action |
Args |
2021-08-23 17:51:34 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, methane, pablogsal, brandtbucher, FFY00, jefferyto, obfusk |
2021-08-23 17:51:34 | serhiy.storchaka | set | messageid: <1629741094.59.0.576036766104.issue37596@roundup.psfhosted.org> |
2021-08-23 17:51:34 | serhiy.storchaka | link | issue37596 messages |
2021-08-23 17:51:34 | serhiy.storchaka | create | |
|