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 -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/452SRDHFTOWEX5M6ZUUSTINAQO6LXOCS/ Code of Conduct: http://python.org/psf/codeofconduct/