f(n=4) works; bug or feature?
Peter Hansen
peter at engcorp.com
Mon Dec 24 01:39:39 EST 2001
"Edward C. Jones" wrote:
>
> In Python 2.2, the following code prints a "4".
>
> def fun(n):
> print n
>
> fun(n=4)
>
> Bug or feature?
Or correct behavior? You are calling the method with
a keyword argument as described in the Language Reference
such as at http://www.python.org/doc/current/ref/calls.html .
--
----------------------
Peter Hansen, P.Eng.
peter at engcorp.com
More information about the Python-list
mailing list