Skip to content
Permalink
3.9

Commits on May 29, 2021

  1. bpo-44254: On Mac, remove disfunctional colors from turtledemo buttons (

    GH-26448)
    
    On macOS, tk defers to system setting for button background when in normal state.
    Give turtledemo button text a color that works on either light or dark background.
    (cherry picked from commit af5a324)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed May 29, 2021
  2. 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>
    miss-islington and pablogsal committed May 29, 2021
  3. bpo-44263: Better explain the GC contract for PyType_FromSpecWithBases (

    GH-26442)
    
    (cherry picked from commit 8b55bc3)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    miss-islington and pablogsal committed May 29, 2021
  4. Fix dataclass comment typo _eq__ -> __eq__ (GH-26433) (GH-26437)

    (cherry picked from commit 7e6f237)
    
    Co-authored-by: Sean Grady <vedicmonk@gmail.com>
    
    Co-authored-by: Sean Grady <vedicmonk@gmail.com>
    miss-islington and SeanGrady committed May 29, 2021

Commits on May 28, 2021

  1. bpo-44249: Fix 3 README.rst typos (GH-26385)

    (cherry picked from commit acac6c7)
    
    
    Co-authored-by: Ayush Parikh <ayushparikh332@gmail.com>
    miss-islington and Ayushparikh-code committed May 28, 2021
  2. bpo-41611: IDLE: Catch TclError exceptions in AutoCompleteWindow.winc…

    …onfig_event() (GH-26404)
    
    Since the <Configure> event may occur after the
    completion window is gone, catch potential
    TclError exceptions when accessing acw.
    
    (cherry picked from commit 4e2e5c1)
    miss-islington committed May 28, 2021

Commits on May 27, 2021

  1. bpo-43667: Add news fragment for Solaris changes (GH-26405) (GH-26410)

    (cherry picked from commit 164a4f4)
    
    Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
    miss-islington and kulikjak committed May 27, 2021
  2. 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>
    miss-islington and taleinat committed May 27, 2021

Commits on May 26, 2021

  1. bpo-41147: [doc] contextlib.redirect_stdout() provides the new stream…

    … as context var (GH-21199) (GH-26380)
    
    (cherry picked from commit 46db39d)
    
    Co-authored-by: Peter Law <PeterJCLaw@gmail.com>
    miss-islington and PeterJCLaw committed May 26, 2021

Commits on May 25, 2021

  1. Point to recent link to PyFLTK (GH-26315) (GH-26367)

    (cherry picked from commit ee3d78e)
    
    Co-authored-by: Mark <mark@qtrac.eu>
    
    Co-authored-by: Mark <mark@qtrac.eu>
    miss-islington and mark-summerfield committed May 25, 2021
  2. bpo-20408: Fix memoryview() signature in docs (GH-24431)

    (cherry picked from commit d18e5da)
    
    Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
    miss-islington and felixxm committed May 25, 2021
  3. bpo-43109: Fix --with-lto configure option on macOS (GH-26341) (GH-26343

    )
    
    Allow --with-lto configure option to work with Apple-supplied Xcode or
    Command Line Tools which do not provide llvm-ar.
    (cherry picked from commit 59acfd4)
    
    Co-authored-by: Ned Deily <nad@python.org>
    miss-islington and ned-deily committed May 25, 2021

Commits on May 24, 2021

  1. [3.9] bpo-44195: Use 'TraversableResources' in the docs to match the …

    …implementation. (GH-26317) (GH-26335)
    
    (cherry picked from commit 7148293)
    
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    Automerge-Triggered-By: GH:jaraco
    miss-islington committed May 24, 2021

Commits on May 22, 2021

  1. 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>
    miss-islington and erlend-aasland committed May 22, 2021
  2. [3.9] Remove duplicate words in docs. (GH-26167) (GH-26297)

    (cherry picked from commit b06ed1d)
    felixxm committed May 22, 2021
  3. bpo-8264: Document hasattr and getattr behavior for private attributes (

    GH-23513) (GH-26238)
    
    Clarify ``getattr`` and ``setattr`` requirements for accessing name-mangled attributes
    
    Co-Authored-By: Catalin Iacob <iacobcatalin@gmail.com>
    (cherry picked from commit 2edaf6a)
    
    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    miss-islington and Fidget-Spinner committed May 22, 2021

Commits on May 21, 2021

  1. Specify Python Cookbook edition for reference (GH-26301) (#26303)

    (cherry picked from commit 604cd71)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed May 21, 2021
  2. 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>
    miss-islington and terryjreedy committed May 21, 2021
  3. [doc] Fix indentation in inspect documentation (GH-24846) (GH-26288)

    (cherry picked from commit 642fdfd)
    
    Co-authored-by: Numerlor <25886452+Numerlor@users.noreply.github.com>
    miss-islington and Numerlor committed May 21, 2021
  4. [3.9] bpo-43667: Fix broken Unicode encoding in non-UTF locales on So…

    …laris (GH-25096) (GH-25847)
    
    (cherry picked from commit 9032cf5)
    
    Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
    kulikjak committed May 21, 2021
  5. [3.9] bpo-43882 - Mention urllib.parse changes in Whats new section. (G…

    …H-26276)
    
    * [3.9] bpo-43882 - Mention urllib.parse changes in Whats new section.
    
    * Add the missing section.
    orsenthil committed May 21, 2021

Commits on May 20, 2021

  1. bpo-36160: Fix test_site so that it can run independently of other te…

    …sts (GH-12131) (GH-26263)
    
    (cherry picked from commit 1270ad6)
    
    Co-authored-by: native-api <vano@mail.mipt.ru>
    miss-islington and native-api committed May 20, 2021
  2. Update link in SECURITY.md (GH-21320) (GH-26260)

    (cherry picked from commit 4d396e7)
    
    Co-authored-by: Marcono1234 <Marcono1234@users.noreply.github.com>
    miss-islington and Marcono1234 committed May 20, 2021
  3. 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>
    miss-islington and noormichael committed May 20, 2021

Commits on May 19, 2021

  1. [doc] Fix typo in asyncio-eventloop documentation (GH-22311) (GH-26257)

    (cherry picked from commit b66a03a)
    
    Co-authored-by: Bruno <brunogeninatti@gmail.com>
    miss-islington and Bgeninatti committed May 19, 2021
  2. bpo-37741: make importlib.metadata docs discoverable through a module…

    … directive. (GH-25415) (GH-25417)
    
    Automerge-Triggered-By: GH:jaraco
    (cherry picked from commit 23acadc)
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    miss-islington and jaraco committed May 19, 2021
  3. bpo-40975: [doc] Identify AsyncExitStack.enter_async_context()/aclose…

    …() as coroutine methods (GH-20870) (GH-26255)
    
    (cherry picked from commit c054e8f)
    
    Co-authored-by: naglis <naglis@users.noreply.github.com>
    miss-islington and naglis committed May 19, 2021
  4. 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>
    miss-islington and pablogsal committed May 19, 2021
  5. [3.9] bpo-44168: Fix error message in the parser for keyword argument…

    …s for invalid expressions (GH-26210) (GH-26250)
    
    (cherry picked from commit 33c0c90)
    
    Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
    pablogsal committed May 19, 2021
  6. 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>
    miss-islington and pablogsal committed May 19, 2021
  7. [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>
    taleinat committed May 19, 2021
  8. bpo-35765: Clarify references to "object x" in the JSON tutorial (GH-…

    …22411) (GH-26219)
    
    (cherry picked from commit 4fdcc39)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed May 19, 2021
  9. bpo-44106: Purge unused sqlite3 doc includes (GH-26234)

    (cherry picked from commit d798acc)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    miss-islington and erlend-aasland committed May 19, 2021
  10. bpo-44106: Improve sqlite3 example database contents (GH-26027)

    (cherry picked from commit 92d1064)
    
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    miss-islington and erlend-aasland committed May 19, 2021
Older