*args
and **kwargs
?
How To Use args and kwargs in Python 3 by Lisa Tagliaferri, 20 November 2017.
Bare asterisk (*
) in function argument
In Python 3 you can specify *
in the argument list, from the Python 3.5 Documentation:
”Parameters after *
or *identifier
are keyword-only parameters and may only be passed used keyword arguments.”
Forced naming of parameters in Python by Eli Bendersky, 12 January 2013.
Coerce to NamedTuple
coerce_to_namedtuple.py by Andy Mitchhank