
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-py... https://stackoverflow.com/questions/5931291/how-can-i-create-a-set-of-sets-i... -- Steve