Message400156
| Author |
serhiy.storchaka |
| Recipients |
FFY00, brandtbucher, jefferyto, methane, obfusk, pablogsal, rhettinger, serhiy.storchaka |
| Date |
2021年08月23日.17:51:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1629741094.59.0.576036766104.issue37596@roundup.psfhosted.org> |
| In-reply-to |
| Content |
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. |
|