[Python-ideas] Delegating `BoundArguments.__getitem__` to `BoundArguments.arguments.__getitem__`

Ram Rachum ram at rachum.com
Fri Oct 3 18:30:05 CEST 2014


Hi,

I suggest delegating `BoundArguments.__getitem__` to
`BoundArguments.arguments.__getitem__`, so instead of doing
`bound_arguments.arguments['foo']` we could do `bound_arguments['foo']`.
Since there isn't that much more to a `BoundArguments` object than its
arguments I think it's nice to save some typing and be able to access the
arguments directly.


Thanks,
Ram.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20141003/97de6523/attachment.html>


More information about the Python-ideas mailing list