SF patch 499062: Minor typo in test_generators.py.
There's no actual patch there. It's an objection that Guido's example doesn't actually generator "leaves", so change the comment that says it does.
This commit is contained in:
parent
c4b9d1dab1
commit
424238f1f7
|
@ -322,7 +322,7 @@ Example
|
||||||
i = n / 2
|
i = n / 2
|
||||||
return Tree(list[i], tree(list[:i]), tree(list[i+1:]))
|
return Tree(list[i], tree(list[:i]), tree(list[i+1:]))
|
||||||
|
|
||||||
# A recursive generator that generates Tree leaves in in-order.
|
# A recursive generator that generates Tree labels in in-order.
|
||||||
def inorder(t):
|
def inorder(t):
|
||||||
if t:
|
if t:
|
||||||
for x in inorder(t.left):
|
for x in inorder(t.left):
|
||||||
|
|
Loading…
Reference in New Issue