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:
Tim Peters 2002-03-10 07:59:28 +00:00
parent c4b9d1dab1
commit 424238f1f7
1 changed files with 1 additions and 1 deletions

View File

@ -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):