homepage

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 rhettinger
Recipients FFY00, brandtbucher, jefferyto, methane, obfusk, pablogsal, rhettinger, serhiy.storchaka
Date 2021年08月23日.22:58:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629759489.32.0.827209560459.issue37596@roundup.psfhosted.org>
In-reply-to
Content
Here's pure python code for expirmentation:
 from marshal import dumps, loads
 def marshal_set(s):
 return dumps(sorted((dumps(value), value) for value in s))
 def unmarshal_set(m):
 return {value for dump, value in loads(m)}
 def test(s):
 assert unmarshal_set(marshal_set(s)) == s
 
 test({("string", 1), ("string", 2), ("string", 3)})
History
Date User Action Args
2021年08月24日 00:19:36rhettingerunlinkissue37596 messages
2021年08月23日 22:58:09rhettingersetrecipients: + rhettinger, methane, serhiy.storchaka, pablogsal, brandtbucher, FFY00, jefferyto, obfusk
2021年08月23日 22:58:09rhettingersetmessageid: <1629759489.32.0.827209560459.issue37596@roundup.psfhosted.org>
2021年08月23日 22:58:09rhettingerlinkissue37596 messages
2021年08月23日 22:58:09rhettingercreate

AltStyle によって変換されたページ (->オリジナル) /