<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Lib/socket.py, branch fix-misc-acks</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/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-06T15:01:31+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2019-12-06T15:01:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=5ba591fa2c1f74c4a84372fb4ffc0b16863f1ad7'/>
<id>5ba591fa2c1f74c4a84372fb4ffc0b16863f1ad7</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
(cherry picked from commit b64334cb93d0ddbb551c8cd712942bab2fc72772)

Co-authored-by: Mario Corchero &lt;mcorcherojim@bloomberg.net&gt;</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
(cherry picked from commit b64334cb93d0ddbb551c8cd712942bab2fc72772)

Co-authored-by: Mario Corchero &lt;mcorcherojim@bloomberg.net&gt;</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://91.123.203.49/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://91.123.203.49/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://91.123.203.49/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://91.123.203.49/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://91.123.203.49/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>
<entry>
<title>issue28083: add IntFlag constants</title>
<updated>2016-09-11T20:34:42+00:00</updated>
<author>
<name>Ethan Furman</name>
<email>ethan@stoneleaf.us</email>
</author>
<published>2016-09-11T20:34:42+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=40bed8a536770551b2a6b3ad58278cc623722b72'/>
<id>40bed8a536770551b2a6b3ad58278cc623722b72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #27698: Add socketpair to socket.__all__ on Windows</title>
<updated>2016-08-17T12:40:08+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-08-17T12:40:08+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3da57436ba6265de2a6abb3846e6e3a8e2c02322'/>
<id>3da57436ba6265de2a6abb3846e6e3a8e2c02322</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #26778: Fixed "a/an/and" typos in code comment and documentation.</title>
<updated>2016-04-17T05:32:47+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2016-04-17T05:32:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d'/>
<id>6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Issue #16915: Clarify that mode parameter of socket.makefile() does not accept</title>
<updated>2016-02-18T15:34:00+00:00</updated>
<author>
<name>Berker Peksag</name>
<email>berker.peksag@gmail.com</email>
</author>
<published>2016-02-18T15:34:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0'/>
<id>3fe64d0c5ca5f1dc9723b9ef436d033f390b19f0</id>
<content type='text'>
the same values as open().
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
the same values as open().
</pre>
</div>
</content>
</entry>
</feed>
