3.9
Commits on May 29, 2021
-
bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (
-
bpo-44263: Mention PyType_Ready in the gc protocol warning (GH-26445)
(cherry picked from commit 43cf7c8) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Commits on May 28, 2021
-
bpo-44249: Fix 3 README.rst typos (GH-26385)
(cherry picked from commit acac6c7) Co-authored-by: Ayush Parikh <ayushparikh332@gmail.com>
-
bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winc…
Commits on May 27, 2021
-
bpo-41611: IDLE: fix freezing on completion on macOS (GH-26400)
(cherry picked from commit abc4bd5) Co-authored-by: Tal Einat <532281+taleinat@users.noreply.github.com>
Commits on May 26, 2021
Commits on May 25, 2021
-
bpo-20408: Fix memoryview() signature in docs (GH-24431)
(cherry picked from commit d18e5da) Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Commits on May 24, 2021
Commits on May 22, 2021
-
bpo-30757: Improve "How to make stand-alone binaries" FAQ (GH-26309) (G…
…H-26312) Co-authored-by: denfromufa <denfromufa@users.noreply.github.com> Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com> (cherry picked from commit 2a1e669) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
-
bpo-8264: Document hasattr and getattr behavior for private attributes (
Commits on May 21, 2021
-
bpo-43927: Change 'IOError' to 'OSError' (GH-26289)
This is the last remaining instance, at least for this chapter, in 3.10 & 3.11. (cherry picked from commit 2f47d8d) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Commits on May 20, 2021
-
bpo-36160: Fix test_site so that it can run independently of other te…
-
bpo-43295: Fix error handling of datetime.strptime format string '%z' (…
…GH-24627) (#25695) Previously, `datetime.strptime` would match `'z'` with the format string `'%z'` (for UTC offsets), throwing an `IndexError` by erroneously trying to parse `'z'` as a timestamp. As a special case, `'%z'` matches the string `'Z'` which is equivalent to the offset `'+00:00'`, however this behavior is not defined for lowercase `'z'`. This change ensures a `ValueError` is thrown when encountering the original example, as follows: ``` >>> from datetime import datetime >>> datetime.strptime('z', '%z') ValueError: time data 'z' does not match format '%z' ``` Automerge-Triggered-By: GH:pganssle (cherry picked from commit 04f6fbb) Co-authored-by: Noor Michael <nsmichael31@gmail.com> Co-authored-by: Noor Michael <nsmichael31@gmail.com>
Commits on May 19, 2021
-
bpo-37741: make importlib.metadata docs discoverable through a module…
-
bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose…
-
Fix compiler warning for misleading guarding in the tkinter (GH-26244) (
GH-26252) The newest gcc emmits this warning: ``` /Modules/_tkinter.c:272:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON | ^~~~~~~~~~~~ /Modules/_tkinter.c:243:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 243 | (*(PyThreadState**)Tcl_GetThreadData(&state_key, sizeof(PyThreadState*))) | ^ /Modules/_tkinter.c:272:57: note: in expansion of macro ‘tcl_tstate’ 272 | if(tcl_lock)PyThread_acquire_lock(tcl_lock, 1); tcl_tstate = tstate; } | ^~~~~~~~~~ /Modules/_tkinter.c:2869:5: note: in expansion of macro ‘LEAVE_PYTHON’ 2869 | LEAVE_PYTHON ``` that's because the macro packs together two statements at the same level as the "if". The warning is misleading but is very noisy so it makes sense to fix it. (cherry picked from commit 95d0471) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
-
Fix compiler warning in the xml module (GH-26245) (GH-26248)
The newest version of gcc complains about passing un-initialized arrays as constant pointers: ``` /Modules/expat/xmltok_ns.c: In function ‘findEncodingNS’: /Modules/expat/xmltok.h:272:10: warning: ‘buf’ may be used uninitialized [-Wmaybe-uninitialized] 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ /Modules/expat/xmltok.h:272:10: note: by argument 5 of type ‘const char *’ to ‘enum XML_Convert_Result(const ENCODING *, const char **, const char *, char **, const char *)’ {aka ‘enum XML_Convert_Result(const struct encoding *, const char **, const char *, char **, const char *)’} 272 | (((enc)->utf8Convert)(enc, fromP, fromLim, toP, toLim)) | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /Modules/expat/xmltok_ns.c:95:3: note: in expansion of macro ‘XmlUtf8Convert’ 95 | XmlUtf8Convert(enc, &ptr, end, &p, p + ENCODING_MAX - 1); | ^~~~~~~~~~~~~~ In file included from /Modules/expat/xmltok.c:1657: /Modules/expat/xmltok_ns.c:92:8: note: ‘buf’ declared here 92 | char buf[ENCODING_MAX]; ``` (cherry picked from commit be93f81) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> Co-authored-by: Pablo Galindo <Pablogsal@gmail.com> -
[3.9] backport non-content changes to IDLE's help.html (GH-26239)
Followup to GH-25851 to synchonize with 3.10. Signed-off-by: Tal Einat <532281+taleinat@users.noreply.github.com>
-
bpo-44106: Purge unused sqlite3 doc includes (GH-26234)
(cherry picked from commit d798acc) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
-
bpo-44106: Improve sqlite3 example database contents (GH-26027)
(cherry picked from commit 92d1064) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>