[Python-ideas] Operator for inserting an element into a list
rosuav at gmail.com
Sun Jun 17 16:09:06 EDT 2018
On Sun, Jun 17, 2018 at 11:38 PM, Steven D'Aprano <steve at pearwood.info> wrote:
> As for "frequent operation", there are lots of frequent operations in
> Python. Does every one of them deserve special syntax to make it clean?
> I just opened one of my modules at random, and I don't have a single
> append in that module, but I have 14 calls to string.startswith and nine
> calls to kwargs.pop.
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
More information about the Python-ideas