
Jan. 17, 2022
10:07 a.m.
On Mon, Jan 17, 2022 at 12:54:58AM +0000, Oscar Benjamin wrote:
A more relevant question right now is if any other set syntax should apply to frozensets e.g. should this work:
>>> squares = f{x**2 for x in range(10)}
If display syntax for frozensets were to be approved, then we should consider frozenset comprehensions as well. That would be an obvious extension of the syntax. But I don't know if there are technical difficulties with that proposal that might make it less attractive. -- Steve