[Biopython] [Entrez] bytes objects has no attribute 'read'

c.buhtz at posteo.jp c.buhtz at posteo.jp
Sun Dec 20 17:01:52 UTC 2015


On 2015-12-19 23:11 Peter Cock <p.j.a.cock at googlemail.com> wrote:
> You need a handle-like object to give to the Biopython parser,
> which must support the read method, so:
> 
> h = z.open(z.namelist()[0])
> for i in Bio.Entrez.parse(h):
>     print(i)

Great that work.
The open() function is not documented in the zipfile-package.
-- 
GnuPGP-Key ID 0751A8EC


More information about the Biopython mailing list