[英]In Python3, is `urllib.request` thread-safe?
如果urllib.request在Pyhton 3 文檔中是否是線程安全的,則無法找到。 在多線程腳本中使用它時,我需要尋找什么特別的東西嗎?
urllib.request
據urllib.request的源在這里 , 這里和這里 ,不,它不是。
一般來說,Python 不是線程安全的,所以除非明確聲明一個模塊,否則你應該假設它不是。
[英]Setting proxy to urllib.request (Python3)
[英]Python3 - urllib.request permission denied
[英]urllib vs. urllib.request in Python3 - Enthought Canopy
[英]How do I clear the cookies in urllib.request (python3)
[英]python3 urllib.request will block forever in gevent
[英]Python3 urllib.request will not close connections immediately
[英]Python3, Urllib.request, urlopen() is timing out
[英]Python 3 - urllib.request - HTTPError
[英]urllib.request in Python 2.7
[英]Python - urllib.request and flask
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.