On Sun, Jun 17, 2018 at 11:38 PM, Steven D'Aprano <st...@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 _______________________________________________ Python-ideas mailing list Python-ideas@python.org https://mail.python.org/mailman/listinfo/python-ideas Code of Conduct: http://python.org/psf/codeofconduct/