Re: [python-nl] some observations

2006-01-10 Berichten over hetzelfde onderwerp Martijn Pieters
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 '

Re: [python-nl] some observations

2006-01-10 Berichten over hetzelfde onderwerp Ronald Oussoren
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'

[python-nl] some observations

2006-01-10 Berichten over hetzelfde onderwerp Perdaen, D.M.L.
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'