about functions question

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Oct 25 02:52:41 EDT 2007


On Thu, 25 Oct 2007 06:28:16 +0000, NoName wrote:

> I try it:
> 
> def b():
>   ...
>   a()
>   ...
> 
> def a():
>   ...
>   b()
>   ...
> 
> b()
> it's not work.

What do you mean by not working?  At the time `b()` is called, both
functions are defined so it should working.  Or at least it's not the
problem you think it is.  The code above, the dots replaced with nothing,
will of course run "forever" until the stack limit is reached.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list