June 17, 2018
8:09 p.m.
On Sun, Jun 17, 2018 at 11:38 PM, Steven D'Aprano <steve@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 logical. ChrisA