<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python, branch 3.10</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>[3.10] GH-87235: Make sure "python /dev/fd/9 9&lt;/path/to/script.py" works on macOS (GH-99768) (#99817)</title>
<updated>2023-03-28T12:13:37+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-28T12:13:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5ae5ea8375b6ad1fad1fa4c529980ee245250c70'/>
<id>5ae5ea8375b6ad1fad1fa4c529980ee245250c70</id>
<content type='text'>
On macOS all file descriptors for a particular file in /dev/fd
share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
more like ``dup(9)`` than a regular open.

This causes problems when a user tries to run "/dev/fd/9" as a script
because zipimport changes the file offset to try to read a zipfile
directory. Therefore change zipimport to reset the file offset after
trying to read the zipfile directory.
(cherry picked from commit d08fb257698e3475d6f69bb808211d39e344e5b2)

Co-authored-by: Ronald Oussoren &lt;ronaldoussoren@mac.com&gt;

* Regen zipimport

---------

Co-authored-by: Ronald Oussoren &lt;ronaldoussoren@mac.com&gt;
Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On macOS all file descriptors for a particular file in /dev/fd
share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
more like ``dup(9)`` than a regular open.

This causes problems when a user tries to run "/dev/fd/9" as a script
because zipimport changes the file offset to try to read a zipfile
directory. Therefore change zipimport to reset the file offset after
trying to read the zipfile directory.
(cherry picked from commit d08fb257698e3475d6f69bb808211d39e344e5b2)

Co-authored-by: Ronald Oussoren &lt;ronaldoussoren@mac.com&gt;

* Regen zipimport

---------

Co-authored-by: Ronald Oussoren &lt;ronaldoussoren@mac.com&gt;
Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-98608: Fix Failure-handling in new_interpreter() (gh-102658)</title>
<updated>2023-03-21T19:10:36+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-21T19:10:36+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d5fdc3f07ec64d6e17a63f995ed03f0f107cda78'/>
<id>d5fdc3f07ec64d6e17a63f995ed03f0f107cda78</id>
<content type='text'>
The error-handling code in new_interpreter() has been broken for a while.  We hadn't noticed because those code mostly doesn't fail.  (I noticed while working on gh-101660.)  The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed.  The solution is to switch back to the calling thread state first.

(cherry picked from commit d1b883b52a99427d234c20e4a92ddfa6a1da8880)

Co-authored-by: Eric Snow &lt;ericsnowcurrently@gmail.com&gt;
https: //github.com/python/cpython/issues/98608</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error-handling code in new_interpreter() has been broken for a while.  We hadn't noticed because those code mostly doesn't fail.  (I noticed while working on gh-101660.)  The problem is that we try to clear/delete the newly-created thread/interpreter using itself, which just failed.  The solution is to switch back to the calling thread state first.

(cherry picked from commit d1b883b52a99427d234c20e4a92ddfa6a1da8880)

Co-authored-by: Eric Snow &lt;ericsnowcurrently@gmail.com&gt;
https: //github.com/python/cpython/issues/98608</pre>
</div>
</content>
</entry>
<entry>
<title>gh-102356: Add thrashcan macros to filter object dealloc (GH-102426)</title>
<updated>2023-03-05T11:20:41+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-03-05T11:20:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=d4a04e55d8bd8eaa307f3e4aa8b443301a0d996a'/>
<id>d4a04e55d8bd8eaa307f3e4aa8b443301a0d996a</id>
<content type='text'>
Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters.
(cherry picked from commit 66aa78cbe604a7c5731f074b869f92174a8e3b64)

Co-authored-by: Marta Gómez Macías &lt;mgmacias@google.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add thrashcan macros to the deallocator of the filter objects to protect against deeply nested destruction of chains of nested filters.
(cherry picked from commit 66aa78cbe604a7c5731f074b869f92174a8e3b64)

Co-authored-by: Marta Gómez Macías &lt;mgmacias@google.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] GH-102126: fix deadlock at shutdown when clearing thread state… (#102235)</title>
<updated>2023-03-03T13:14:30+00:00</updated>
<author>
<name>Kumar Aditya</name>
<email>59607654+kumaraditya303@users.noreply.github.com</email>
</author>
<published>2023-03-03T13:14:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=6c2e052ee07f10a6336bb4de1cef71dbe7d30ee6'/>
<id>6c2e052ee07f10a6336bb4de1cef71dbe7d30ee6</id>
<content type='text'>
[3.10] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222).
(cherry picked from commit 5f11478ce7fda826d399530af4c5ca96c592f144)</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[3.10] GH-102126: fix deadlock at shutdown when clearing thread states (GH-102222).
(cherry picked from commit 5f11478ce7fda826d399530af4c5ca96c592f144)</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-97786: Fix compiler warnings in pytime.c (GH-101826) (#102150)</title>
<updated>2023-02-26T12:34:21+00:00</updated>
<author>
<name>Mark Dickinson</name>
<email>dickinsm@gmail.com</email>
</author>
<published>2023-02-26T12:34:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=5b610b59c75953aef4b523b833c7d6f2df963d90'/>
<id>5b610b59c75953aef4b523b833c7d6f2df963d90</id>
<content type='text'>
* [3.10] gh-97786: Fix compiler warnings in pytime.c (GH-101826)

Fixes compiler warnings in pytime.c..
(cherry picked from commit b1b375e2670a58fc37cb4c2629ed73b045159918)

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;

* Add comment about the casts

---------

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [3.10] gh-97786: Fix compiler warnings in pytime.c (GH-101826)

Fixes compiler warnings in pytime.c..
(cherry picked from commit b1b375e2670a58fc37cb4c2629ed73b045159918)

Co-authored-by: Mark Dickinson &lt;dickinsm@gmail.com&gt;

* Add comment about the casts

---------

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-101967: add a missing error check (GH-101968)</title>
<updated>2023-02-18T01:13:33+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-02-18T01:13:33+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=92050e87677548e9283f32c18c984f1cf1d4fc76'/>
<id>92050e87677548e9283f32c18c984f1cf1d4fc76</id>
<content type='text'>
(cherry picked from commit 89413bbccb9261b72190e275eefe4b0d49671477)

Co-authored-by: Eclips4 &lt;80244920+Eclips4@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 89413bbccb9261b72190e275eefe4b0d49671477)

Co-authored-by: Eclips4 &lt;80244920+Eclips4@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-101614: Don't treat python3_d.dll as a Python DLL when checking extension modules for incompatibility (GH-101615)</title>
<updated>2023-02-08T14:48:42+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2023-02-08T14:48:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=c63d7c95bafd0beabc36ea1461966f1ef8fe9c7f'/>
<id>c63d7c95bafd0beabc36ea1461966f1ef8fe9c7f</id>
<content type='text'>
(cherry picked from commit 3a88de7a0af00872d9d57e1d98bc2f035cb15a1c)

Co-authored-by: David Hewitt &lt;1939362+davidhewitt@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 3a88de7a0af00872d9d57e1d98bc2f035cb15a1c)

Co-authored-by: David Hewitt &lt;1939362+davidhewitt@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-101400: Fix incorrect lineno in exception message on contin… (gh-101448)</title>
<updated>2023-01-31T14:42:22+00:00</updated>
<author>
<name>Dong-hee Na</name>
<email>donghee.na@python.org</email>
</author>
<published>2023-01-31T14:42:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=740050af0493030b1f6ebf0b9ac39a356e2e74b6'/>
<id>740050af0493030b1f6ebf0b9ac39a356e2e74b6</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] Update copyright years to 2023. (gh-100850)</title>
<updated>2023-01-08T23:00:24+00:00</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2023-01-08T23:00:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=3e9543e4071edbe85ab70c5dca001067f800b988'/>
<id>3e9543e4071edbe85ab70c5dca001067f800b988</id>
<content type='text'>
* [3.10] Update copyright years to 2023. (gh-100848).
(cherry picked from commit 11f99323c2ae0ec428c370a335695e3d8d4afc1d)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;

* Update additional copyright years to 2023.

Co-authored-by: Ned Deily &lt;nad@python.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* [3.10] Update copyright years to 2023. (gh-100848).
(cherry picked from commit 11f99323c2ae0ec428c370a335695e3d8d4afc1d)

Co-authored-by: Benjamin Peterson &lt;benjamin@python.org&gt;

* Update additional copyright years to 2023.

Co-authored-by: Ned Deily &lt;nad@python.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.10] gh-100776: Fix misleading default value in help(input) (GH-100788) (#100842)</title>
<updated>2023-01-08T09:23:34+00:00</updated>
<author>
<name>Shantanu</name>
<email>12621235+hauntsaninja@users.noreply.github.com</email>
</author>
<published>2023-01-08T09:23:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/cpython-git.git/commit/?id=a8702bb8c8487e500e5cfcf47759fa739489f122'/>
<id>a8702bb8c8487e500e5cfcf47759fa739489f122</id>
<content type='text'>
(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)

Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit a2141882f259e21bb09fa0b7cba8142147b9e3d7)

Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
</feed>
