<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/socket.py, branch misc-acks-comment</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>bpo-36820: Break unnecessary cycle in socket.py, codeop.py and dyld.py (GH-13135)</title>
<updated>2019-12-06T14:27:38+00:00</updated>
<author>
<name>Mario Corchero</name>
<email>mcorcherojim@bloomberg.net</email>
</author>
<published>2019-12-06T14:27:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=b64334cb93d0ddbb551c8cd712942bab2fc72772'/>
<id>b64334cb93d0ddbb551c8cd712942bab2fc72772</id>
<content type='text'>
Break cycle generated when saving an exception in socket.py, codeop.py and dyld.py as they keep alive not only the exception but user objects through the ``__traceback__`` attribute.


https://bugs.python.org/issue36820



Automerge-Triggered-By: @pablogsal</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Break cycle generated when saving an exception in socket.py, codeop.py and dyld.py as they keep alive not only the exception but user objects through the ``__traceback__`` attribute.


https://bugs.python.org/issue36820



Automerge-Triggered-By: @pablogsal</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-38319: Fix shutil._fastcopy_sendfile(): set sendfile() max block size (GH-16491)</title>
<updated>2019-10-01T03:40:54+00:00</updated>
<author>
<name>Giampaolo Rodola</name>
<email>g.rodola@gmail.com</email>
</author>
<published>2019-10-01T03:40:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=94e165096fd65e8237e60de570fb609604ab94c9'/>
<id>94e165096fd65e8237e60de570fb609604ab94c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-28724: Add methods send_fds and recv_fds to the socket module (GH-12889)</title>
<updated>2019-09-11T17:12:21+00:00</updated>
<author>
<name>Joannah Nanjekye</name>
<email>33177550+nanjekyejoannah@users.noreply.github.com</email>
</author>
<published>2019-09-11T17:12:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=8d120f75fb8c8731464b5f7531d74cdbb897d924'/>
<id>8d120f75fb8c8731464b5f7531d74cdbb897d924</id>
<content type='text'>
The socket module now has the socket.send_fds() and socket.recv.fds() functions.
Contributed by Joannah Nanjekye, Shinya Okano (original patch)
and Victor Stinner.

Co-Authored-By: Victor Stinner &lt;vstinner@redhat.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The socket module now has the socket.send_fds() and socket.recv.fds() functions.
Contributed by Joannah Nanjekye, Shinya Okano (original patch)
and Victor Stinner.

Co-Authored-By: Victor Stinner &lt;vstinner@redhat.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-11953: Extend table of Windows WSA* error codes (GH-15004)</title>
<updated>2019-09-09T09:15:14+00:00</updated>
<author>
<name>Ngalim Siregar</name>
<email>ngalim.siregar@gmail.com</email>
</author>
<published>2019-09-09T09:15:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=71ea688d662a74ddf39a3874e06c73e58df55c02'/>
<id>71ea688d662a74ddf39a3874e06c73e58df55c02</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<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>
</feed>
