3.9
Commits on Oct 20, 2021
-
bpo-45464: [doc] Explain that subclassing multiple exceptions is frag…
-
bpo-45532: Replace 'default' with 'main' as default in sys.version (G…
-
[3.9] bpo-45494: Fix parser crash when reporting errors involving inv…
…alid continuation characters (GH-28993) (#29071) There are two errors that this commit fixes: * The parser was not correctly computing the offset and the string source for E_LINECONT errors due to the incorrect usage of strtok(). * The parser was not correctly unwinding the call stack when a tokenizer exception happened in rules involving optionals ('?', [...]) as we always make them return valid results by using the comma operator. We need to check first if we don't have an error before continuing.. (cherry picked from commit a106343) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> NOTE: unlike the cherry-picked original, this commit points at a crazy location due to a bug in the tokenizer that required a big refactor in 3.10 to fix. We are leaving as-is for 3.9.
-
Cleanup a couple of comments left on PR 28775 post-merge. (GH-29079)
(cherry picked from commit 1dfac27) Co-authored-by: Gregory P. Smith <greg@krypto.org>
-
bpo-45436: Fix tkinter tests with Tcl/Tk 8.6.11+ (GH-29077) (GH-29081)
Since v8.6.11, a few configuration options seem to accept an empty value where they did not previously; particularly the `type` of a `Menu` widget, and the `compound` of any ttk widget with a label. Providing an explicit expected error message to `checkEnumParam` bypasses the check of an empty value, which no longer raises `TclError`. (cherry picked from commit 4fe454c) Co-authored-by: Zachary Ware <zach@python.org>
-
[3.9] bpo-45500: Rewrite test_dbm (GH-29002) (GH-29074)
* Generate test classes at import time. It allows to filter them when run with unittest. E.g: "./python -m unittest test.test_dbm.TestCase_gnu -v". * Create a database class in a new directory which will be removed after test. It guarantees that all created files and directories be removed and will not conflict with other dbm tests. * Restore dbm._defaultmod after tests. Previously it was set to the last dbm module (dbm.dumb) which affected other tests. * Enable the whichdb test for dbm.dumb. * Move test_keys to the correct test class. It does not test whichdb(). * Remove some outdated code and comments.. (cherry picked from commit 975b94b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Commits on Oct 19, 2021
Commits on Oct 18, 2021
Commits on Oct 17, 2021
-
bpo-45229: Make test_http_cookiejar discoverable (GH-29004)
(cherry picked from commit b3f0cea) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Commits on Oct 16, 2021
-
[3.9]bpo-45463: Clarify that global statements allows multiple names (G…
…H-28851) (GH-28990) The global statement allows specifying a list of identifiers (https://docs.python.org/3/reference/simple_stmts.htmlGH-the-global-statement). The "Execution model" chapter described the global statement as if it only allowed one single name. Pluralize "name" in the appropriate places. (cherry picked from commit 4ecd119) Co-authored-by: Luca Chiodini <luca@chiodini.org> Co-authored-by: Luca Chiodini <luca@chiodini.org>
Commits on Oct 14, 2021
-
bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicod…
-
[3.9] bpo-45461: Fix IncrementalDecoder and StreamReader in the "unic…
…ode-escape" codec (GH-28939) (GH-28945) They support now splitting escape sequences between input chunks. Add the third parameter "final" in codecs.unicode_escape_decode(). It is True by default to match the former behavior. (cherry picked from commit c96d154) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Commits on Oct 13, 2021
-
bpo-45386: Handle strftime's ValueError graciously in xmlrpc.client (G…
…H-28765) (GH-28935) At import time, the xmlrpc.client module uses different date formats to test strftime so it can format years with 4 digits consistently. Depending on the underlying C library and its strftime implementation some of these calls can result in ValueErrors, blocking the xmlrpc.client module from being imported. This commit changes the behavior of this bit of code to react to ValueError exceptions, treating the format that caused them as an non-viable option. (cherry picked from commit 1c83135) Co-authored-by: rtobar <rtobarc@gmail.com>
-
bpo-20692: Add Programming FAQ entry for 1.__class__ error. (GH-28918)
To avoid error, add either space or parentheses. (cherry picked from commit 380c440) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
-
[3.9] bpo-45405: Prevent
internal configure errorwhen running ``……configure`` with recent versions of non-Apple clang. (GH-28845) (GH-28910) Change the configure logic to function properly on macOS when the compiler outputs a platform triplet for option --print-multiarch. Co-authored-by: Ned Deily <nad@python.org> (cherry picked from commit 9c47667) Co-authored-by: David Bohman <debohman@gmail.com> Automerge-Triggered-By: GH:ned-deily
Commits on Oct 12, 2021
-
Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)
(cherry picked from commit f79f3b4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
-
Slight correct grammar (GH-28860)
(cherry picked from commit 1b11582) Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
-
bpo-45441: Update some moved URLs in documentation (GH-28861)
(cherry picked from commit b37dc9b) Co-authored-by: 180909 <wjh180909@gmail.com>
Commits on Oct 11, 2021
Commits on Oct 10, 2021
Commits on Oct 9, 2021
Commits on Oct 7, 2021
-
bpo-45262, asyncio: Fix cache of the running loop holder (GH-28796)
Prevent use-after-free of running loop holder via cache. (cherry picked from commit 392a898) Co-authored-by: Matthias Reichl <github@hias.horus.com>
-
bpo-45337: Use the realpath of the new executable when creating a ven…