Are urllib2 and httplib thread safe?
问题 I\'m looking for information on thread safety of urllib2 and httplib . The official documentation (http://docs.python.org/library/urllib2.html and http://docs.python.org/library/httplib.html) lacks any information on this subject; the word thread is not even mentioned there... UPDATE Ok, they are not thread-safe out of the box. What\'s required to make them thread-safe or is there a scenario in which they can be thread-safe? I\'m asking because it\'s seems that using separate OpenerDirector