[Python-Dev] repeated keyword arguments

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Jun 28 03:17:10 CEST 2008


tomer filiba wrote:
> >>> def f(**kwargs):
> ... print kwargs
> ...
> >>> f(a=5,b=7,a=8)
> {'a': 8, 'b': 7}
> >>>

I can't think of any reason why one would need to be
able to write such code, or even want to.
-- 
Greg


More information about the Python-Dev mailing list

AltStyle によって変換されたページ (->オリジナル) /