3.9
Commits on Jun 6, 2022
Commits on May 24, 2022
Commits on May 19, 2022
Commits on May 17, 2022
Commits on May 16, 2022
-
[3.9] bpo-34480: fix bug where match variable is used prior to being …
-
Check result of utc_to_seconds and skip fold probe in pure Python (GH…
…-91582) (GH-92748) 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 83c0247) Co-authored-by: Paul Ganssle <1377457+pganssle@users.noreply.github.com>
-
gh-92530: Fix an issue that occurred after interrupting threading.Con…
…dition.notify (GH-92534) (GH-92831) 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 70af994) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-
gh-87670: Add web.archive redirects from effbot (GH-92816)
(cherry picked from commit 3ed1cae) Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Commits on May 13, 2022
-
gh-92611: Link to PEP 594 sections & add key detail in doc deprecatio…
-
Document Py_ssize_t. (GH-92512)
It fixes 252 errors from a Sphinx nitpicky run (sphinx-build -n). But there's 8182 errors left. Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> (cherry picked from commit 664aa94) Co-authored-by: Julien Palard <julien@palard.fr>
Commits on May 12, 2022
Commits on May 11, 2022
-
[3.9] gh-91810: ElementTree: Use text file's encoding by default in X…
…ML declaration (GH-91903) (GH-92665) ElementTree method write() and function tostring() now use the text file's encoding ("UTF-8" if not available) instead of locale encoding in XML declaration when encoding="unicode" is specified. (cherry picked from commit 707839b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Automerge-Triggered-By: GH:serhiy-storchaka
-
[3.9] Fix typo in unittest.rst: addCleanupModule -> addModuleCleanup (G…
Commits on May 10, 2022
-
gh-92256: Improve Argument Clinic parser error messages (GH-92268)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> (cherry picked from commit 4bd07d1) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
-
bpo-13553: Document tkinter.Tk args (GH-4786)
(cherry picked from commit c56e2bb) Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Commits on May 9, 2022
-
Doc: Update py2app link. (GH-91585)
See: https://mail.python.org/archives/list/docs@python.org/thread/KDVFGNGGUGGPVRZT7WZYHHWXCRS2GEN7/ (cherry picked from commit b77a95f) Co-authored-by: Julien Palard <julien@palard.fr>
-
gh-92417:
asynciodocs:asyncio.run()is available on all support… -
CODEOWNERS: Add Erlend Aasland as sqlite3 code owner (GH-92535)
Signed-off-by: Erlend E. Aasland <erlend.aasland@protonmail.com> (cherry picked from commit 3edda03) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@protonmail.com>
-
bpo-38056: overhaul Error Handlers section in codecs documentation (G…
…H-15732) * Some handlers were wrongly described as text-encoding only, but actually they can also be used in text-decoding. * Add more description to each handler. * Add two REPL examples. * Add indexes for Error Handler's name. Co-authored-by: Kyle Stanley <aeros167@gmail.com> Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 5bc2390) Co-authored-by: Ma Lin <animalize@users.noreply.github.com>
Commits on May 8, 2022
-
pdb docs: workaround for double semicolon in strings (GH-17011)
see gotcha/ipdb#172 Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 2888b11) Co-authored-by: Godefroid Chapelle <gotcha@bubblenet.be>
-
gh-77521: Add link to builtin module names in modules tutorial (GH-92438
) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com> (cherry picked from commit 859250c) Co-authored-by: slateny <46876382+slateny@users.noreply.github.com>
-
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork …
…method. (GH-91598) (GH-92497) (#92499) Do not spawn ProcessPool workers on demand when they spawn via fork. This avoids potential deadlocks in the child processes due to forking from a multithreaded process.. (cherry picked from commit ebb37fc) Co-authored-by: Gregory P. Smith <greg@krypto.org> (cherry picked from commit b795376) Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Gregory P. Smith <greg@krypto.org>
-
Fix use of the default role in a news entry. (GH-92500)
(cherry picked from commit 8883172) Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>