[Edu-sig] How does Python do Pointers?

kirby urner kirby.urner at gmail.com
Tue May 6 17:14:47 CEST 2008


>  Thanks to default arguments, we can pass arguments in any order to
>  some functions:
>

Oops, I missed my redefinition of f:

>>> def f(x=1, y=2):  print x, y

>  >>> f()
>  1 2
>  >>> f(y=100, x='ardvarrk') # mentioning y first, types irrelevant
>  ardvarrk 100
>

Plus misspelled 'aardvark' (sigh).

Kirby


More information about the Edu-sig mailing list