<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git, branch v3.9.13</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>Python 3.9.13</title>
<updated>2022-05-17T11:12:56+00:00</updated>
<author>
<name>Łukasz Langa</name>
<email>lukasz@langa.pl</email>
</author>
<published>2022-05-17T11:12:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6de2ca5339a83edb957e5a657ee6d6183cb3914c'/>
<id>6de2ca5339a83edb957e5a657ee6d6183cb3914c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[3.9] gh-92112: Fix crash triggered by an evil custom `mro()` (GH-92113) (GH-92372)</title>
<updated>2022-05-16T16:47:35+00:00</updated>
<author>
<name>Jelle Zijlstra</name>
<email>jelle.zijlstra@gmail.com</email>
</author>
<published>2022-05-16T16:47:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f82b32410ba220165eab7b8d6dcc61a09744512c'/>
<id>f82b32410ba220165eab7b8d6dcc61a09744512c</id>
<content type='text'>
(cherry picked from commit 85354ed78c0edb6d81a2bd53cabc85e547b8b26e)

Co-authored-by: Alexey Izbyshev &lt;izbyshev@ispras.ru&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 85354ed78c0edb6d81a2bd53cabc85e547b8b26e)

Co-authored-by: Alexey Izbyshev &lt;izbyshev@ispras.ru&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[3.9] bpo-34480: fix bug where match variable is used prior to being defined (GH-17643) (GH-32256)</title>
<updated>2022-05-16T16:19:04+00:00</updated>
<author>
<name>Marek Suscak</name>
<email>marek.suscak@gmail.com</email>
</author>
<published>2022-05-16T16:19:04+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=518b2389673833887b26a8474eeb9530d17e2b8d'/>
<id>518b2389673833887b26a8474eeb9530d17e2b8d</id>
<content type='text'>
Co-authored-by: Ezio Melotti &lt;ezio.melotti@gmail.com&gt;
Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@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>
Co-authored-by: Ezio Melotti &lt;ezio.melotti@gmail.com&gt;
Co-authored-by: blurb-it[bot] &lt;43283697+blurb-it[bot]@users.noreply.github.com&gt;
Co-authored-by: Łukasz Langa &lt;lukasz@langa.pl&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Check result of utc_to_seconds and skip fold probe in pure Python (GH-91582) (GH-92748)</title>
<updated>2022-05-16T15:33:01+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-16T15:33:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1699a5ee13a39da73f5d9a8c5def4438200b7b59'/>
<id>1699a5ee13a39da73f5d9a8c5def4438200b7b59</id>
<content type='text'>
The `utc_to_seconds` call can fail, here's a minimal reproducer on
Linux:

TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"

The old behavior still raised an error in a similar way, but only
because subsequent calculations happened to fail as well. Better to fail
fast.

This also refactors the tests to split out the `fromtimestamp` and
`utcfromtimestamp` tests, and to get us closer to the actual desired
limits of the functions. As part of this, we also changed the way we
detect platforms where the same limits don't necessarily apply (e.g.
Windows).

As part of refactoring the tests to hit this condition explicitly (even
though the user-facing behvior doesn't change in any way we plan to
guarantee), I noticed that there was a difference in the places that
`datetime.utcfromtimestamp` fails in the C and pure Python versions, which
was fixed by skipping the "probe for fold" logic for UTC specifically —
since UTC doesn't have any folds or gaps, we were never going to find a
fold value anyway. This should prevent some failures in the pure python
`utcfromtimestamp` method on timestamps close to 0001-01-01.

There are two separate news entries for this because one is a
potentially user-facing change, the other is an internal code
correctness change that, if anything, changes some error messages. The
two happen to be coupled because of the test refactoring, but they are
probably best thought of as independent changes.

Fixes GH-91581
(cherry picked from commit 83c0247d47b99f4571e35ea95361436e1d2a61cd)

Co-authored-by: Paul Ganssle &lt;1377457+pganssle@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The `utc_to_seconds` call can fail, here's a minimal reproducer on
Linux:

TZ=UTC python -c "from datetime import *; datetime.fromtimestamp(253402300799 + 1)"

The old behavior still raised an error in a similar way, but only
because subsequent calculations happened to fail as well. Better to fail
fast.

This also refactors the tests to split out the `fromtimestamp` and
`utcfromtimestamp` tests, and to get us closer to the actual desired
limits of the functions. As part of this, we also changed the way we
detect platforms where the same limits don't necessarily apply (e.g.
Windows).

As part of refactoring the tests to hit this condition explicitly (even
though the user-facing behvior doesn't change in any way we plan to
guarantee), I noticed that there was a difference in the places that
`datetime.utcfromtimestamp` fails in the C and pure Python versions, which
was fixed by skipping the "probe for fold" logic for UTC specifically —
since UTC doesn't have any folds or gaps, we were never going to find a
fold value anyway. This should prevent some failures in the pure python
`utcfromtimestamp` method on timestamps close to 0001-01-01.

There are two separate news entries for this because one is a
potentially user-facing change, the other is an internal code
correctness change that, if anything, changes some error messages. The
two happen to be coupled because of the test refactoring, but they are
probably best thought of as independent changes.

Fixes GH-91581
(cherry picked from commit 83c0247d47b99f4571e35ea95361436e1d2a61cd)

Co-authored-by: Paul Ganssle &lt;1377457+pganssle@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-80143: Add clarification for escape characters (GH-92292) (GH-92630)</title>
<updated>2022-05-16T15:32:28+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-16T15:32:28+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=4d05114ae74a5028c7d645a8257e18c5b9ddfa78'/>
<id>4d05114ae74a5028c7d645a8257e18c5b9ddfa78</id>
<content type='text'>
(cherry picked from commit 549567c6e70da4846c105a18a1a89e7dd09680d7)

Co-authored-by: slateny &lt;46876382+slateny@users.noreply.github.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 549567c6e70da4846c105a18a1a89e7dd09680d7)

Co-authored-by: slateny &lt;46876382+slateny@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-92530: Fix an issue that occurred after interrupting threading.Condition.notify (GH-92534) (GH-92831)</title>
<updated>2022-05-16T15:25:31+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-16T15:25:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=14d05942ea21d4a95c9eac1f0bae53540d8f1602'/>
<id>14d05942ea21d4a95c9eac1f0bae53540d8f1602</id>
<content type='text'>
If Condition.notify() was interrupted just after it released the waiter lock,
but before removing it from the queue, the following calls of notify() failed
with RuntimeError: cannot release un-acquired lock.
(cherry picked from commit 70af994fee7c0850ae859727d9468a5f29375a38)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If Condition.notify() was interrupted just after it released the waiter lock,
but before removing it from the queue, the following calls of notify() failed
with RuntimeError: cannot release un-acquired lock.
(cherry picked from commit 70af994fee7c0850ae859727d9468a5f29375a38)

Co-authored-by: Serhiy Storchaka &lt;storchaka@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-87670: Add web.archive redirects from effbot (GH-92816)</title>
<updated>2022-05-16T06:32:15+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-16T06:32:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c4fc53f44e382f133bf874c079c2f6a8a61d1e2f'/>
<id>c4fc53f44e382f133bf874c079c2f6a8a61d1e2f</id>
<content type='text'>
(cherry picked from commit 3ed1cae9ed9d1f0dd9d68da4b30b731fdf6be768)

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

Co-authored-by: Stanley &lt;46876382+slateny@users.noreply.github.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>gh-92611: Link to PEP 594 sections &amp; add key detail in doc deprecation notices (GH-92612)</title>
<updated>2022-05-13T20:13:02+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-13T20:13:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1aafad19090fbc3c3e03977a0828d0d191bc6bdf'/>
<id>1aafad19090fbc3c3e03977a0828d0d191bc6bdf</id>
<content type='text'>
(cherry picked from commit 9f68dab3d327335b938046c50b4f09944e993cc8)

Co-authored-by: CAM Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(cherry picked from commit 9f68dab3d327335b938046c50b4f09944e993cc8)

Co-authored-by: CAM Gerlach &lt;CAM.Gerlach@Gerlach.CAM&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Document Py_ssize_t. (GH-92512)</title>
<updated>2022-05-13T14:10:10+00:00</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-05-13T14:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f253cf469dfd65237882fcb51854d750bf80df13'/>
<id>f253cf469dfd65237882fcb51854d750bf80df13</id>
<content type='text'>
It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But
there's 8182 errors left.

Co-authored-by: Ezio Melotti &lt;ezio.melotti@gmail.com&gt;
(cherry picked from commit 664aa94b570a4a8f3535efb2e3d638a4ab655943)

Co-authored-by: Julien Palard &lt;julien@palard.fr&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But
there's 8182 errors left.

Co-authored-by: Ezio Melotti &lt;ezio.melotti@gmail.com&gt;
(cherry picked from commit 664aa94b570a4a8f3535efb2e3d638a4ab655943)

Co-authored-by: Julien Palard &lt;julien@palard.fr&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Fix typo in argparse docs. (GH-92691) (#92731)</title>
<updated>2022-05-13T14:01:30+00:00</updated>
<author>
<name>thueringa</name>
<email>thueringa@users.noreply.github.com</email>
</author>
<published>2022-05-13T14:01:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=256c6d05e29da63ec0af74553192b9d26912b7c2'/>
<id>256c6d05e29da63ec0af74553192b9d26912b7c2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
