arguments to functions

Fredrik Lundh fredrik at pythonware.com
Mon Jul 1 07:10:44 EDT 2002


Bengt Richter wrote:

>  >>> test(10, 11, 12, expected=5)
>  Traceback (most recent call last):
>    File "<stdin>", line 1, in ?
>  TypeError: test() got multiple values for keyword argument 'expected'
>
> I'd be inclined to call that a bug, actually.

only if you're ignoring the language reference, which tells
you how this really works.

</F>





More information about the Python-list mailing list