Python 3K or Python 2.9?

Piet van Oostrum piet at cs.uu.nl
Thu Sep 13 04:34:35 EDT 2007


>>>>> TheFlyingDutchman <zzbbaadd at aol.com> (T) wrote:

>T> The confusing way about the current Python method when you first
>T> encounter it is
>T>  why is "self" being passed in when you write the function but not
>T> when you call it. 

It *is* passed when you call it, but it is written before the method name
instead of after it. Some people have called this an "infix" call similar
to infix operators.
-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list