[Biopython-dev] [Bug 2769] Entrez results: seek methods doesn't work?

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Fri Feb 20 18:07:15 UTC 2009


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


biopython-bugzilla at maubp.freeserve.co.uk changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Comment #1 from biopython-bugzilla at maubp.freeserve.co.uk  2009-02-20 13:07 EST -------
This is normal and expected behaviour from many python file-like handles.  In
particular it is normal for handles to network resources, e.g.

>>> import urllib
>>> handle = urllib.urlopen("http://biopython.org/")
>>> print handle.read()
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...
>>> handle.seek(0)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: addinfourl instance has no attribute 'seek'


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