This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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 <>
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:34serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, methane, pablogsal, brandtbucher, FFY00, jefferyto, obfusk
2021-08-23 17:51:34serhiy.storchakasetmessageid: <>
2021-08-23 17:51:34serhiy.storchakalinkissue37596 messages
2021-08-23 17:51:34serhiy.storchakacreate