Puzzling: local variable in recursive function made global?
Daniel Oberski
daniel.oberski at gmail.com
Thu Mar 26 14:47:31 EDT 2009
Hi Diez,
Great, this totally clears it up. Thank you!
- daniel
On Thu, 26 Mar 2009 17:50:20 +0100, Diez B. Roggisch wrote:
>
> That's not a local variable, that is a default argument. Which is in
> fact only created once for each function, yes.>
> http://effbot.org/pyfaq/why-are-default-values-shared-between-
objects.htm
>
> Diez
More information about the Python-list
mailing list