On Mon, Jan 17, 2022 at 03:05:36AM +0000, MRAB wrote: > How about doubling-up the braces: > > {{1, 2, 3}}
I mentioned that earlier. Its not *awful*, but as you point out yourself, it does run into the problem that nested sets suffer from brace overflow. # A set of sets. {{{{}}, {{1, 2}}, {{'a', {{}}, None}}}} > and for frozen dicts: We don't even have a frozen dict in the stdlib, so I'm not going to discuss that here. If and when we get a frozen dict, if it is important enough to be a builtin, then we can debate syntax for it. > but how often would you do that? Often enough: https://www.delftstack.com/howto/python/python-set-of-sets/ https://stackoverflow.com/questions/37105696/how-to-have-a-set-of-sets-in-python/37105728 https://stackoverflow.com/questions/5931291/how-can-i-create-a-set-of-sets-in-python -- Steve _______________________________________________ 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/INLZ7BEWYIRGIM55EQ7D3UO3UWME3H2P/ Code of Conduct: http://python.org/psf/codeofconduct/