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

Xavier Combelle xavier.combelle at gmail.com
Wed Jul 2 13:47:03 CEST 2014


in this case:

        C1: a[Z=3]      -> idx = {"Z": 3}             # P1/P2
dictionary with single key


as we can index with any object, I wonder how one could differency between
the calls, a[z=3]
and the actual a[{"Z":3}]. Do they should be return the same?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20140702/1ce1cf23/attachment.html>


More information about the Python-ideas mailing list