[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Re: Antwort: global keyword instead of local
- From: tomas@...
- Date: Mon, 28 Aug 2000 14:08:45 -0300 (EST)
> If we now try to call f(), we will get an error, since i does not
> exist in the local namespace of f. That's all. If we wanted f()
> to work, we would have to write:
> def f():
> global i
> i = i+1
> Quite the opposite of Lua, I guess. :)
How do you write a recursive call ? Hope you don't have to
define f as global!