PEP Idea: Multi-get for lists/tuples and dictionaries (inspired in NumPy)

Musbur musbur at posteo.org
Thu Mar 19 11:17:54 EDT 2020


Hello,

either it's me or everybody else who's missing the point. I understand 
the OP's proposal like this:

dict[set] == {k: dict[k] for k in set}
list[iterable] == [list[i] for i in iterable]

Am I right?


More information about the Python-list mailing list