[Biopython-dev] [Bug 2454] Iterators can't use file-like objects

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Jun 12 15:42:58 UTC 2008


------- Comment #11 from cracka80 at gmail.com  2008-06-12 11:42 EST -------
Maybe it's a good idea for any parsers/iterators to just use the iterator-like
ability of file handles? Writers would have to function slightly differently,
but since file objects, StringIOs and any other file-like objects must provide
an __iter__ method, it's probably a good idea to take that into consideration
when developing a common interface. In addition, writers could output iterators
or generators, so that they can be chained together to operate on files.

Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

More information about the Biopython-dev mailing list