≈ the.bay.news

Tuple comprehensions revisited, in relation to PEP 841 and async iterables

Discussions on Python.org
Tuple comprehensions revisited, in relation to PEP 841 and async iterables
PEP 841 proposes adding new display syntax for frozenset and frozenlist: f{1, 2, 3} for a frozenset f{"a": 1} for a frozendict It also proposes comprehension syntax for both of these immutable collections, supporting both synchronous and asynchronous iterables: f{item for item in items}/f{item async for item in ait} f{k: v for item in items}/f{k: v async for item in ait} If PEP 841 were to be accepted, there would be a pretty striking asymmetry in comprehension syntax for Python’s primitiv...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.