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 serhiy.storchaka
Recipients FFY00, jefferyto, rhettinger, serhiy.storchaka, vstinner
Date 2021年05月25日.15:57:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621958245.74.0.566596017633.issue37596@roundup.psfhosted.org>
In-reply-to
Content
Possible solution: add an ordered subtype of frozenset which would keep an array of items in the original order. The compiler only creates frozenset when optimizes "x in {1, 2}" or "for x in {1, 2}". It should now create an ordered frozenset from a list of constants (removing possible duplicates). The marshal module should save items in that order and restore ordered frozensets when load data. It should not increase memory consumption too much, because frozenset constants in code are rare and small.
History
Date User Action Args
2021年05月25日 15:57:25serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, vstinner, FFY00, jefferyto
2021年05月25日 15:57:25serhiy.storchakasetmessageid: <1621958245.74.0.566596017633.issue37596@roundup.psfhosted.org>
2021年05月25日 15:57:25serhiy.storchakalinkissue37596 messages
2021年05月25日 15:57:25serhiy.storchakacreate

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