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

MRAB python at mrabarnett.plus.com
Thu Mar 19 12:45:41 EDT 2020


On 2020-03-19 15:17, Musbur wrote:
> 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?
> 
"Iterable" is too broad because it includes tuples and strings.


More information about the Python-list mailing list