Skip to content
Permalink
3.9

Commits on Oct 20, 2021

  1. bpo-45464: [doc] Explain that subclassing multiple exceptions is frag…

    …ile (GH-29094) (GH-29105)
    
    Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
    (cherry picked from commit dff0b71)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    miss-islington and ambv committed Oct 20, 2021
  2. bpo-45532: Replace 'default' with 'main' as default in sys.version (G…

    …H-29100)
    
    (cherry picked from commit d2cd5ee)
    
    Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
    miss-islington and youknowone committed Oct 20, 2021
  3. bpo-45229: Make doctest tests discoverable (GH-28986) (GH-29096)

    (cherry picked from commit 8d6740f)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 20, 2021
  4. [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.
    ambv committed Oct 20, 2021
  5. 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>
    miss-islington and gpshead committed Oct 20, 2021
  6. 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>
    miss-islington and zware committed Oct 20, 2021
  7. [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>
    ambv and serhiy-storchaka committed Oct 20, 2021

Commits on Oct 19, 2021

  1. [3.9] bpo-45449: add note about PEP 585 in collections.abc's document…

    …ation (GH-29047) (GH-29068)
    
    Signed-off-by: Filipe Laíns <lains@riseup.net>
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>.
    (cherry picked from commit 7bafa0c)
    
    Co-authored-by: Filipe Laíns <lains@riseup.net>
    ambv and FFY00 committed Oct 19, 2021
  2. bpo-45515: Add zoneinfo to the datetime documentation (GH-29038) (GH-…

    …29066)
    
    We should have done this way back when 3.9 was released, but it fell off
    the radar.
    
    Co-authored-by: Paul Ganssle <git@m.ganssle.io>
    (cherry picked from commit 8e40ca1)
    miss-islington committed Oct 19, 2021

Commits on Oct 17, 2021

  1. bpo-45229: Make test_http_cookiejar discoverable (GH-29004)

    (cherry picked from commit b3f0cea)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 17, 2021

Commits on Oct 16, 2021

  1. [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>
    miss-islington and lucach committed Oct 16, 2021

Commits on Oct 14, 2021

  1. bpo-45467: Fix IncrementalDecoder and StreamReader in the "raw-unicod…

    …e-escape" codec (GH-28944) (GH-28953)
    
    They support now splitting escape sequences between input chunks.
    
    Add the third parameter "final" in codecs.raw_unicode_escape_decode().
    It is True by default to match the former behavior.
    
    (cherry picked from commit 39aa983)
    serhiy-storchaka committed Oct 14, 2021
  2. [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>
    serhiy-storchaka committed Oct 14, 2021
  3. no-issue: Make silence about warning '_POSIX_C_SOURCE redefined' (GH-…

    …28948)
    
    (cherry picked from commit d413c50)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    miss-islington and corona10 committed Oct 14, 2021

Commits on Oct 13, 2021

  1. [3.9] bpo-24444: fix an error in argparse help when help for an optio…

    …n is blank (GH-28050) (GH-28932)
    
    (cherry picked from commit 6fafc25)
    
    Co-authored-by: andrei kulakov <andrei.avk@gmail.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Oct 13, 2021
  2. 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>
    miss-islington and rtobar committed Oct 13, 2021
  3. [3.9] bpo-45229: Make tkinter tests discoverable (GH-28637) (GH-28929)

    (cherry picked from commit f59ed3c)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    ambv and serhiy-storchaka committed Oct 13, 2021
  4. bpo-45239: Fix parsedate_tz when time has more than 2 dots in it (GH-…

    …28452) (GH-28928)
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    (cherry picked from commit b9e6876)
    
    Co-authored-by: Ben Hoyt <benhoyt@gmail.com>
    miss-islington and benhoyt committed Oct 13, 2021
  5. 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>
    miss-islington and terryjreedy committed Oct 13, 2021
  6. [3.9] bpo-45405: Prevent internal configure error when 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
    miss-islington committed Oct 13, 2021

Commits on Oct 12, 2021

  1. Fix format string in _PyImport_LoadDynamicModuleWithSpec() (GH-28863)

    (cherry picked from commit f79f3b4)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 12, 2021
  2. Slight correct grammar (GH-28860)

    (cherry picked from commit 1b11582)
    
    Co-authored-by: nobodyatandnothing <91722596+nobodyatandnothing@users.noreply.github.com>
    miss-islington and nobodyatandnothing committed Oct 12, 2021
  3. bpo-45441: Update some moved URLs in documentation (GH-28861)

    (cherry picked from commit b37dc9b)
    
    Co-authored-by: 180909 <wjh180909@gmail.com>
    miss-islington and 180909 committed Oct 12, 2021
  4. bpo-45401: Fix a resource warning in test_logging (GH-28864) (GH-28873)

    (cherry picked from commit 15188b1)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 12, 2021
  5. bpo-42253: Update xml.dom.minidom.rst (GH-23126) (GH-28875)

    Document that the "standalone" parameter was added in Python 3.9.
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    (cherry picked from commit c7e81fc)
    
    Co-authored-by: Jens Diemer <github.com@jensdiemer.de>
    miss-islington and jedie committed Oct 12, 2021

Commits on Oct 11, 2021

  1. bpo-45351, asyncio: Enhance echo server example, print all addresses (G…

    …H-28828)
    
    (cherry picked from commit 659812b)
    
    Co-authored-by: Olaf van der Spek <olafvdspek@gmail.com>
    miss-islington and OlafvdSpek committed Oct 11, 2021
  2. Handle error when PyUnicode_GetLength returns a negative value. (GH-2…

    …8859)
    
    (cherry picked from commit 560a79f)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    miss-islington and corona10 committed Oct 11, 2021
  3. bpo-45401: Change shouldRollover() methods to only rollover regular f… (

    GH-28822) (#28866)
    
    …iles.
    
    Also changed some historical return values from 1 -> True and 0 -> False.
    (cherry picked from commit 62a6677)
    
    Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
    
    Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
    miss-islington and vsajip committed Oct 11, 2021
  4. Fix a leak in _PyImport_LoadDynamicModuleWithSpec() after failing PyS…

    …ys_Audit() (GH-28862)
    
    (cherry picked from commit 9883ca4)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Oct 11, 2021

Commits on Oct 10, 2021

  1. Fix the "Finding all Adverbs" example (GH-21420) (#28840)

    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    (cherry picked from commit dbd62e7)
    
    Co-authored-by: Rim Chatti <chattiriim@gmail.com>
    miss-islington and RymCh committed Oct 10, 2021

Commits on Oct 9, 2021

  1. bpo-20028: Improve error message of csv.Dialect when initializing (GH…

    …-28705)
    
    (cherry picked from commit 34bbc87)
    
    Co-authored-by: Dong-hee Na <donghee.na@python.org>
    miss-islington and corona10 committed Oct 9, 2021

Commits on Oct 7, 2021

  1. 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>
    miss-islington and HiassofT committed Oct 7, 2021
  2. bpo-45337: Use the realpath of the new executable when creating a ven…

    …v on Windows (GH-28663)
    
    (cherry picked from commit 6811fda)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Oct 7, 2021
Older