On Sat, Jul 25, 2020 at 12:45 PM Marco Sulla <marco.sulla.pyt...@gmail.com> wrote:
> I also remembered another possible use-case: kwargs in CPython. In C code, > kwargs are PyDictObjects. I suppose they are usually not modified; if so, > fdict could be used, since it seems to be faster at creation. > That's an interesting idea. It has always vaguely bothered me that `*args` gives a tuple while `**kwds` gives a dict. Unfortunately it's impossible to change without breaking tons of existing code, since things like `kwds.pop("something")` have become a pretty standard idiom to use it. -- --Guido van Rossum (python.org/~guido) *Pronouns: he/him **(why is my pronoun here?)* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/>
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/NSO7VTLJYISPTKURSXAQQ5FTYKWCSN2K/ Code of Conduct: http://python.org/psf/codeofconduct/