[Python-ideas] PEP pre-draft: Support for indexing with keyword arguments
Ethan Furman
ethan at stoneleaf.us
Fri Jul 4 22:19:02 CEST 2014
On 07/04/2014 01:10 PM, Tim Delaney wrote:
>
> 1. I think you absolutely *must* address the option of purely syntactic
> sugar in the PEP. It will come up on python-dev, so address it now.
>
> a[b, c=f, e=f:g:h]
> -> a[b, 'c':d, 'e':slice(f, g, h)]
> +1 for syntax-sugar only (zero backwards-compatibility concerns).
Also +1 for this approach.
--
~Ethan~
More information about the Python-ideas
mailing list