homepage

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 nswinton
Recipients
Date 2005年10月18日.15:00:51
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=1363935
It's not the prettiest thing, but you can work around this
by setting the socket's recv method to None before closing it.
import urllib2
f = urllib2.urlopen('http://www.google.com')
text=f.read()
f.fp._sock.recv=None # hacky avoidance
f.close()
History
Date User Action Args
2008年01月20日 09:57:52adminlinkissue1208304 messages
2008年01月20日 09:57:52admincreate

AltStyle によって変換されたページ (->オリジナル) /