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
7d1cd6947d
commit
d674e17e96
|
@ -259,7 +259,7 @@ Guido's binary tree example.
|
|||
>>> # Show it off: create a tree.
|
||||
>>> t = tree("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
|
||||
>>> # A recursive generator that generates Tree leaves in in-order.
|
||||
>>> # A recursive generator that generates Tree labels in in-order.
|
||||
>>> def inorder(t):
|
||||
... if t:
|
||||
... for x in inorder(t.left):
|
||||
|
|
Loading…
Reference in New Issue