I’m a bit confused — would adding a “literal” form for frozenset provide
much, if any, of an optimization? If not,
that means it’s only worth doing for convenience.
How often do folks need a frozen set literal? I don’t think I’ve ever used
one.
If we did, then f{‘this’: ‘that’} should make a frozen dict, yes?
On Sun, Jan 16, I suggest his goal of a frozenset literal might be better
achieved by making 'frozenset' a keyword, much as None and True and False
are already keywords.
Adding a keyword is a very Big Deal.
I don’t think this rises to that level at all.
It was done for True and False because having them as non-redefineable
names referencing singletons is really helpful.
-CHB
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/452SRDHFTOWEX5M6ZUUSTINAQO6LXOCS/
Code of Conduct: http://python.org/psf/codeofconduct/