[Python-ideas] PEP pre-draft: Support for indexing with keyword arguments

Tim Delaney timothy.c.delaney at gmail.com
Wed Jul 2 22:14:00 CEST 2014


On 3 July 2014 06:12, Tim Delaney <timothy.c.delaney at gmail.com> wrote:
>
> a[K=1:10:2] -> a.__getitem__(slice('K', slice(1, 10, 2)))
>

Of course, that should have been:

a[K=1:10:2] -> a.__getitem__(slice('K', slice(1, 10, 2), None))

Tim Delaney
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140703/69f2b9be/attachment.html>


More information about the Python-ideas mailing list