[Biopython-dev] [Bug 2752] Context management for Bio.Entrez handles

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Tue Feb 10 11:20:33 EST 2009


http://bugzilla.open-bio.org/show_bug.cgi?id=2752





------- Comment #4 from eric.talevich at gmail.com  2009-02-10 11:20 EST -------
(In reply to comment #3)
> Alternatively, we could add the __enter__ and __exit__ methods to the
> Bio.File.UndoHandle object instead (which would benefit any code using them,
> not just Bio.Entrez).

You're right, that does what I wanted. This bug is just an enhancement to make
the Entrez code work more like modern Python, not anything breaking current
code -- my example is what I wished I could have written a few weeks ago when I
first tried out Bio.Entrez.


-- 
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