bug ???
Franck Bui-Huu
Franck.BUI-HUU at gemplus.com
Tue Mar 25 09:43:58 EST 2003
Hey
I don't understand a weird behavior of python
I ve got two functions:
def function1(var1, var2):
...
function2(var1, var2) # first call to function2
function2(var1, var2) # second call to function2
def function2(var1, var2, var3 = []):
.....
At the start of function2 during its first call var3 = [] -> OK
but during the second call (always at its starting) var3 = [97,3] which is
the value of var3 when first call of function2 was ending ???
if I call function2 by : function2(var1, var2, []) all works fine....
Anyone can help me ?
thanks
More information about the Python-list
mailing list