[Python-ideas] Idea : for smarter assignment?

Chris Angelico rosuav at gmail.com
Tue Jul 25 13:34:43 EDT 2017

On Wed, Jul 26, 2017 at 3:02 AM, Nick Timkovich <prometheus235 at gmail.com> wrote:
> ...I think only includes one other assignment type from what you listed
> (function parameters) that ironically is where one could maybe blur =/:, as
> doing f(x=3) and f(**{x: 3}) are usually similar (I think some C functions
> react poorly?).

The only difference with C functions is that you can have named
positional-only parameters, which you can't do in a pure-Python
function. The nearest equivalent is to use *args and then peel the
arguments off that manually, but then they don't have names at all.


More information about the Python-ideas mailing list