Part of bzrlib.iterablefile View In Hierarchy
Method | __init__ | Undocumented |
Method | read_n | >>> IterableFileBase(['This ', 'is ', 'a ', 'test.']).read_n(8) |
Method | read_to | >>> f = IterableFileBase(['Th\nis ', 'is \n', 'a ', 'te\nst.']) |
Method | read_all | >>> IterableFileBase(['This ', 'is ', 'a ', 'test.']).read_all() |
Method | push_back | >>> f = IterableFileBase(['Th\nis ', 'is \n', 'a ', 'te\nst.']) |
Method | _read | Read data until result satisfies the condition result_length. |
>>> IterableFileBase(['This ', 'is ', 'a ', 'test.']).read_n(8) 'This is '
>>> f = IterableFileBase(['Th\nis ', 'is \n', 'a ', 'te\nst.']) >>> f.read_to('\n') 'Th\n' >>> f.read_to('\n') 'is is \n'