Self function

Luis Zarrabeitia kyrie at
Tue May 5 14:44:24 CEST 2009

On Tuesday 05 May 2009 03:51:19 am Steven D'Aprano wrote:
> def ivisit(node):
>     print node
>     while node and is not None:
>         node =
>         print node
> def rvisit(node):
>     print node
>     if node and is not None:
>         rvisit(
> If there are programmers who find rvisit "a lot less readable" than
> ivisit, then in my arrogant opinion they should consider a change of
> profession.

/me smiles.

What if I happen to find rvisit _more_ readable than ivisit?

/me ducks.

[I'm not a lisp user, but I tend to think recursively anyway...]

Luis Zarrabeitia (aka Kyrie)
Fac. de Matemática y Computación, UH.

More information about the Python-list mailing list