This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author kevindication
Recipients
Date 2005-10-16.14:41:19
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
In python2.3, the following code works.  In python2.4
it fails with an AttributeError:

>>> import urllib2
>>> request = urllib2.Request("http://pheared.net")
>>> opener = urllib2.build_opener()
>>> r = opener.open(request)
>>> r.fileno()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.4/socket.py", line 246, in fileno
    return self._sock.fileno()
AttributeError: HTTPResponse instance has no attribute
'fileno'

Without a fileno it's hard to do things like select.
History
Date User Action Args
2008-01-20 09:58:13adminlinkissue1327971 messages
2008-01-20 09:58:13admincreate