[Python-ideas] Operator for inserting an element into a list

Jelle Zijlstra jelle.zijlstra at gmail.com
Sun Jun 17 16:52:30 EDT 2018


2018-06-17 13:09 GMT-07:00 Chris Angelico <rosuav at gmail.com>:

>
> kwargs.pop("some_key") could plausibly be spelled del
> kwargs["some_key"] if del were (like yield) upgraded to expression.
> Whether that is an improvement or not, I don't know, but at least it's
> logical.
>
That already works. It calls the __delitem__ magic method.


>
> ChrisA
> _______________________________________________
> Python-ideas mailing list
> Python-ideas at python.org
> https://mail.python.org/mailman/listinfo/python-ideas
> Code of Conduct: http://python.org/psf/codeofconduct/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180617/1599e80b/attachment.html>


More information about the Python-ideas mailing list