<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/socket.py, branch alex-patch-1</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/'/>
<entry>
<title>closes bpo-37566: Remove _realsocket from socket.py. (GH-14711)</title>
<updated>2019-07-12T02:17:52+00:00</updated>
<author>
<name>Hai Shi</name>
<email>shihai1992@gmail.com</email>
</author>
<published>2019-07-12T02:17:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c8e7146de257930ea8d0d4aa74b3a64fcaa79d4b'/>
<id>c8e7146de257930ea8d0d4aa74b3a64fcaa79d4b</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>BPO-17561: set create_server backlog default to None (GH-12735)</title>
<updated>2019-04-09T02:42:06+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2019-04-09T02:42:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8702b67dad62a9084f6c1823dce10653743667c8'/>
<id>8702b67dad62a9084f6c1823dce10653743667c8</id>
<content type='text'>
It turns out doing socket.listen(0) does not equal to "choose a
reasonable default". It actually means "set backlog to 0".
As such set backlog=None as the default for socket.create_server.
Fixes the following BB failures:
https://github.com/python/cpython/pull/11784#issuecomment-481036369
Ref. BPO-1756, GH-11784.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out doing socket.listen(0) does not equal to "choose a
reasonable default". It actually means "set backlog to 0".
As such set backlog=None as the default for socket.create_server.
Fixes the following BB failures:
https://github.com/python/cpython/pull/11784#issuecomment-481036369
Ref. BPO-1756, GH-11784.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-35934: Add socket.create_server() utility function (GH-11784)</title>
<updated>2019-04-08T22:34:02+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2019-04-08T22:34:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=eb7e29f2a9d075accc1ab3faf3612ac44f5e2183'/>
<id>eb7e29f2a9d075accc1ab3faf3612ac44f5e2183</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-33138: Change standard error message for non-pickleable and non-copyable types. (GH-6239)</title>
<updated>2018-10-31T00:28:07+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2018-10-31T00:28:07+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0353b4eaaf451ad463ce7eb3074f6b62d332f401'/>
<id>0353b4eaaf451ad463ce7eb3074f6b62d332f401</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-34282: Fix Enum._convert shadowing members named _convert (GH-8568)</title>
<updated>2018-09-12T17:28:53+00:00</updated>
<author>
<name>orlnub123</name>
<email>orlnub123@gmail.com</email>
</author>
<published>2018-09-12T17:28:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=0fb9fadd3b3e9e3698647e0b92d49b0b7aacd979'/>
<id>0fb9fadd3b3e9e3698647e0b92d49b0b7aacd979</id>
<content type='text'>
* Fix enum members getting shadowed by parent attributes
* Move Enum._convert to EnumMeta._convert_
* Deprecate _convert</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Fix enum members getting shadowed by parent attributes
* Move Enum._convert to EnumMeta._convert_
* Deprecate _convert</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-28134: Auto-detect socket values from file descriptor (#1349)</title>
<updated>2018-01-29T21:37:58+00:00</updated>
<author>
<name>Christian Heimes</name>
<email>christian@python.org</email>
</author>
<published>2018-01-29T21:37:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b6e43af669f61a37a29d8ff0785455108e6bc29d'/>
<id>b6e43af669f61a37a29d8ff0785455108e6bc29d</id>
<content type='text'>
Fix socket(fileno=fd) by auto-detecting the socket's family, type,
and proto from the file descriptor. The auto-detection can be overruled
by passing in family, type, and proto explicitly.

Without the fix, all socket except for TCP/IP over IPv4 are basically broken:

&gt;&gt;&gt; s = socket.create_connection(('www.python.org', 443))
&gt;&gt;&gt; s
&lt;socket.socket fd=3, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2003:58:bc4a:3b00:56ee:75ff:fe47:ca7b', 59730, 0, 0), raddr=('2a04:4e42:1b::223', 443, 0, 0)&gt;
&gt;&gt;&gt; socket.socket(fileno=s.fileno())
&lt;socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('2003:58:bc4a:3b00::%2550471192', 59730, 0, 2550471192), raddr=('2a04:4e42:1b:0:700c:e70b:ff7f:0%2550471192', 443, 0, 2550471192)&gt;

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix socket(fileno=fd) by auto-detecting the socket's family, type,
and proto from the file descriptor. The auto-detection can be overruled
by passing in family, type, and proto explicitly.

Without the fix, all socket except for TCP/IP over IPv4 are basically broken:

&gt;&gt;&gt; s = socket.create_connection(('www.python.org', 443))
&gt;&gt;&gt; s
&lt;socket.socket fd=3, family=AddressFamily.AF_INET6, type=SocketKind.SOCK_STREAM, proto=6, laddr=('2003:58:bc4a:3b00:56ee:75ff:fe47:ca7b', 59730, 0, 0), raddr=('2a04:4e42:1b::223', 443, 0, 0)&gt;
&gt;&gt;&gt; socket.socket(fileno=s.fileno())
&lt;socket.socket fd=3, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('2003:58:bc4a:3b00::%2550471192', 59730, 0, 2550471192), raddr=('2a04:4e42:1b:0:700c:e70b:ff7f:0%2550471192', 443, 0, 2550471192)&gt;

Signed-off-by: Christian Heimes &lt;christian@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-32331: Fix socket.type when SOCK_NONBLOCK is available (#4877)</title>
<updated>2017-12-19T01:02:54+00:00</updated>
<author>
<name>Yury Selivanov</name>
<email>yury@magic.io</email>
</author>
<published>2017-12-19T01:02:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=9818142b1bd20243733a953fb8aa2c7be314c47c'/>
<id>9818142b1bd20243733a953fb8aa2c7be314c47c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-31234, socket.create_connection(): Fix ref cycle (#3546)</title>
<updated>2017-09-13T17:10:10+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-09-13T17:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=acb9fa79fa6453c2bbe3ccfc9cad2837feb90093'/>
<id>acb9fa79fa6453c2bbe3ccfc9cad2837feb90093</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26384: Merge from 3.5</title>
<updated>2016-09-17T20:23:13+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-09-17T20:23:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5d625cff07bf9a9dbe9be3b598fbaf673a3be819'/>
<id>5d625cff07bf9a9dbe9be3b598fbaf673a3be819</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26384: Fix UnboundLocalError in socket._sendfile_use_sendfile</title>
<updated>2016-09-17T20:22:06+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-09-17T20:22:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=bcfb35f80d9d1f87d9fa6993c1d3bc35dd5db865'/>
<id>bcfb35f80d9d1f87d9fa6993c1d3bc35dd5db865</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
