Showing content from http://mail.python.org/pipermail/python-dev/attachments/20131018/da9e9858/attachment.html below:
<p dir="ltr">Maybe the dummy socket returned by wrap_socket() is not acceptable for select?</p>
<p dir="ltr">--Guido van Rossum (sent from Android phone)</p>
<div class="gmail_quote">On Oct 18, 2013 11:26 AM, "Richard Oudkerk" <<a href="mailto:shibturn@gmail.com">shibturn@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 18/10/2013 6:57pm, Guido van Rossum wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Thanks! Those are all expected (though contributions are always welcome<br>
-- not looking at you specifically :-).<br>
<br>
Does examples/fetch3.py work for you with an https URL? (Try<br>
<a href="http://dropbox.com" target="_blank">http://dropbox.com</a>, i.e. without 's' -- you get two redirects to https<br>
URLs. :-)<br>
</blockquote>
<br>
It fails -- not sure why...<br>
<br>
$ python-release examples/fetch3.py <a href="http://dropbox.com" target="_blank">http://dropbox.com</a><br>
redirect to <a href="https://dropbox.com/" target="_blank">https://dropbox.com/</a><br>
Traceback (most recent call last):<br>
File "examples/fetch3.py", line 211, in <module><br>
main()<br>
File "examples/fetch3.py", line 206, in main<br>
body = loop.run_until_complete(fetch(<u></u>sys.argv[1], '-v' in sys.argv))<br>
File "C:\Repos\cpython-dirty\lib\<u></u>asyncio\base_events.py", line 172, in run_until_complete<br>
self.run_forever()<br>
File "C:\Repos\cpython-dirty\lib\<u></u>asyncio\base_events.py", line 153, in run_forever<br>
self._run_once()<br>
File "C:\Repos\cpython-dirty\lib\<u></u>asyncio\base_events.py", line 576, in _run_once<br>
event_list = self._selector.select(timeout)<br>
File "C:\Repos\cpython-dirty\lib\<u></u>selectors.py", line 219, in select<br>
r, w, _ = self._select(self._readers, self._writers, [], timeout)<br>
File "C:\Repos\cpython-dirty\lib\<u></u>selectors.py", line 210, in _select<br>
r, w, x = select.select(r, w, w, timeout)<br>
OSError: [WinError 10038] An operation was attempted on something that is not a socket<br>
<br>
-- <br>
Richard<br>
</blockquote></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4