Changeset 415
- Timestamp:
- 05/07/07 10:15:29 (2 years ago)
- Files:
-
- cly/trunk/cly/__init__.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cly/trunk/cly/__init__.py
r413 r415 626 626 """A callable object representing help for a Node. 627 627 628 Returns an iterable of pairs in the form (key, help).""" 629 def __init__(self, doc): 630 """Accepts an iterable of two element tuples in the form (key, help). 628 Returns an iterable of pairs in the form (key, help). 629 630 Constructor arguments 631 632 ``doc``: 633 An iterable of two element tuples in the form ``(key, help)``. 631 634 632 635 >>> h = Help([('a', 'b'), ('b', 'c')]) 633 636 >>> [i for i in h(None)] 634 637 [('a', 'b'), ('b', 'c')] 635 """ 638 """ 639 def __init__(self, doc): 636 640 self.doc = doc 637 641
