Perdaen, D.M.L. wrote:
> Question 1: Why is it that the dictionary 'b' is global over the
> methods in scrips 1a and 1c and the result of 'print b' is { 'z' : 10 }?
> I would expect that dictionary 'b' would be created locally in 'subtest'
> and that it would stay empty in 'def test' just like in '
On 10-jan-2006, at 13:02, Perdaen, D.M.L. wrote:
> I am a novice in python and I did some observations that resulted
> in two questions:
You can speak dutch here :-)
>
> Question 1: Why is it that the dictionary 'b' is global over the
> methods in scrips 1a and 1c and the result of 'print b'
I am a novice in python and I did some observations that resulted in two
questions:
Question 1: Why is it that the dictionary 'b' is global over the methods in
scrips 1a and 1c and the result of 'print b' is { 'z' : 10 }? I would expect
that dictionary 'b' would be created locally in 'subtest'