[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread David Hanney
New submission from David Hanney : I was playing about with ideas behind b-plus-trees and found i python bug the important bit of code is: for p, k in enumerate(self.keys): self.ptrs[p].dump(indent+1, kmin=lk, kmax=k) print sindent

[issue6921] recursion wierdness ... related to variable scoping?

2009-09-16 Thread David Hanney
David Hanney added the comment: Ooops. I'm just learning Python and it never occurred to me that I could get through the for without k begin defined. At least not until about an hour ago in the cinema. I came here ASAP but you'd already got to it. Sorry for wasting your time. I s