Skip to content
Permalink
3.9

Commits on Feb 4, 2022

  1. [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132)

    @coroutine in removed in 3.11, not 3.10.
    (cherry picked from commit 5603db4)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 4, 2022
  2. bpo-46629: Update classicAppCompat.sccd for new signing certificate (G…

    …H-31111)
    
    (cherry picked from commit 9b4e3d9)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Feb 4, 2022
  3. Optimize images by IMGbot (GH-21348)

    Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
    (cherry picked from commit ba650af)
    
    Co-authored-by: Manish Kumar  <manishprivet@protonmail.com>
    miss-islington and manishprivet committed Feb 4, 2022
  4. bpo-46588: fix typo in test_calltip.py (GH-31119)

    (cherry picked from commit 222865d)
    
    Co-authored-by: Caio Agiani <agianicaio@gmail.com>
    miss-islington and caioagiani committed Feb 4, 2022

Commits on Feb 3, 2022

  1. bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)

    On Windows, one had to Tab or click on the entry box
    to get a cursor and be able to enter anything.
    (cherry picked from commit d1df81a)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 3, 2022
  2. bpo-45975: IDLE - Remove extraneous parens (GH-31107)

    mistakenly included in 3 files in previous PR
    and backported both to 3.10 and 3.9.
    (cherry picked from commit 916d0d8)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 3, 2022
  3. [3.9] [3.10] bpo-46576: bpo-46524: Disable compiler optimization with…

    …in test_peg_generator. (GH-31015) (GH-31089) (GH-31093)
    
    Disable compiler optimization within test_peg_generator.
    
    This speed up test_peg_generator by always disabling compiler
    optimizations by using -O0 or equivalent when the test is building its
    own C extensions.
    
    A build not using --with-pydebug in order to speed up test execution
    winds up with this test taking a very long time as it would do
    repeated compilation of parser C code using the same optimization
    flags as CPython was built with.
    
    This speeds the test up 6-8x on gps-raspbian.
    
    Also incorporate's GH-31017's win32 conditional and flags.
    
    Co-authored-by: Kumar Aditya kumaraditya303.
    (cherry picked from commit 164a017)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    (cherry picked from commit f5ebec4)
    
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    
    Automerge-Triggered-By: GH:gpshead
    miss-islington committed Feb 3, 2022
  4. [3.9] bpo-45975: Use walrus operator for some idlelib while loops (GH…

    …-31083)
    
    co-authored by Nick Drozd
    cherrypicked from 51a95be
    terryjreedy committed Feb 3, 2022

Commits on Feb 2, 2022

  1. bpo-46616: Ensures test_importlib.test_windows cleans up registry key…

    …s after completion (GH-31086)
    
    (cherry picked from commit 89a0a90)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Feb 2, 2022
  2. [3.9] bpo-45703: Invalidate _NamespacePath cache on importlib.invalid…

    …ate_cache (GH-29384) (GH-30922) (GH-31076)
    
    Consider the following directory structure:
    
        .
        └── PATH1
            └── namespace
                └── sub1
                    └── __init__.py
    
    And both PATH1 and PATH2 in sys path:
    
        $ PYTHONPATH=PATH1:PATH2 python3.11
        >>> import namespace
        >>> import namespace.sub1
        >>> namespace.__path__
        _NamespacePath(['.../PATH1/namespace'])
        >>> ...
    
    While this interpreter still runs, PATH2/namespace/sub2 is created:
    
        .
        ├── PATH1
        │   └── namespace
        │       └── sub1
        │           └── __init__.py
        └── PATH2
            └── namespace
                └── sub2
                    └── __init__.py
    
    The newly created module cannot be imported:
    
        >>> ...
        >>> namespace.__path__
        _NamespacePath(['.../PATH1/namespace'])
        >>> import namespace.sub2
        Traceback (most recent call last):
          File "<stdin>", line 1, in <module>
        ModuleNotFoundError: No module named 'namespace.sub2'
    
    Calling importlib.invalidate_caches() now newly allows to import it:
    
        >>> import importlib
        >>> importlib.invalidate_caches()
        >>> namespace.__path__
        _NamespacePath(['.../PATH1/namespace'])
        >>> import namespace.sub2
        >>> namespace.__path__
        _NamespacePath(['.../PATH1/namespace', '.../PATH2/namespace'])
    
    This was not previously possible.
    
    
    
    
    
    
    
    
    Co-Authored-By: Miro Hrončok <miro@hroncok.cz>
    
    Automerge-Triggered-By: GH:encukou
    encukou committed Feb 2, 2022
  3. bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)

    test_ftplib now silently ignores socket errors to prevent logging
    unhandled threading exceptions.
    (cherry picked from commit 0611eaf)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Feb 2, 2022
  4. bpo-46591: Make About IDLE doc link label clickable (GH-30251)

    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 53c7808)
    
    Co-authored-by: Wes <5124946+wesinator@users.noreply.github.com>
    miss-islington and wesinator committed Feb 2, 2022

Commits on Feb 1, 2022

  1. bpo-46487: Add get_write_buffer_limits to Write and _SSLProtocol tr…

    …ansports (GH-30958)
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    (cherry picked from commit 64568ac)
    
    Co-authored-by: Emiya <importz750@gmail.com>
    miss-islington and mooncell07 committed Feb 1, 2022
  2. bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921) (GH-31057

    …) (GH-31059)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    (cherry picked from commit 519eb6a)
    miss-islington committed Feb 1, 2022
  3. [3.9] bpo-46584: remove check for py2.3 from `ctypes/test_python_ap…

    …i` (GH-31024) (GH-31053)
    
    (cherry picked from commit 913e340)
    
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Feb 1, 2022
  4. [3.9] bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014) (

    GH-31048)
    
    (cherry picked from commit 108e66b)
    
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    
    Automerge-Triggered-By: GH:iritkatriel
    miss-islington committed Feb 1, 2022
  5. [3.9] bpo-46482: add a test for typing.Annotation.__new__ (GH-30821) (

    GH-31045)
    
    (cherry picked from commit 4c0612a)
    
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    
    Automerge-Triggered-By: GH:Fidget-Spinner
    miss-islington committed Feb 1, 2022

Commits on Jan 31, 2022

  1. bpo-46542: test_lib2to3 uses support.infinite_recursion() (GH-31035)

    * bpo-46542: test_lib2to3 uses support.infinite_recursion()
    
    Fix a Python crash in test_lib2to3 when using Python built in debug
    mode: limit the recursion limit.
    
    The test_all_project_files() test of test_lib2to3 now uses the
    test.support.infinite_recursion() context manager when processing the
    infinite_recursion.py file to prevent a crash when Python is built in
    debug mode.
    
    The two test_all_project_files() tests now use subTest() and log the
    refactored/parsed filename (if test_lib2to3 is run in verbose mode).
    
    * Update Lib/lib2to3/tests/data/infinite_recursion.py
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    (cherry picked from commit ee0ac32)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Jan 31, 2022

Commits on Jan 28, 2022

  1. bpo-45925: Update Windows installer to SQLite 3.37.2 (GH-30485)

    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    (cherry picked from commit 4d191fc)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Jan 28, 2022
  2. bpo-46530: add "thread_time" to test_time.test_get_clock_info (GH…

    …-30913)
    
    (cherry picked from commit c27a331)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Jan 28, 2022
  3. bpo-46542: test_json uses support.infinite_recursion() (GH-30972)

    Fix test_json tests checking for RecursionError: modify these tests
    to use support.infinite_recursion().
    (cherry picked from commit e7a6285)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Jan 28, 2022

Commits on Jan 27, 2022

  1. bpo-46539: Pass status of special typeforms to forward references (GH…

    …-30926)
    
    Previously this didn't matter because there weren't any valid code paths
    that could trigger a type check with a special form, but after the bug
    fix for `Annotated` wrapping special forms it's now possible to annotate
    something like `Annotated['ClassVar[int]', (3, 4)]`. This change would
    also be needed for proposed future changes, such as allowing `ClassVar`
    and `Final` to nest each other in dataclasses.
    (cherry picked from commit ced5005)
    
    Co-authored-by: Gregory Beauregard <greg@greg.red>
    miss-islington and GBeauregard committed Jan 27, 2022
  2. bpo-44734: Fix floating point precision in test_turtle (GH-30910)

    (cherry picked from commit aa78287)
    
    Co-authored-by: Karolina Surma <33810531+befeleme@users.noreply.github.com>
    miss-islington and befeleme committed Jan 27, 2022
  3. bpo-23556: [doc] Fix inaccuracy in documentation for raise without ar…

    …gs. Improve tests for context in nested except handlers. (GH-29236)
    
    (cherry picked from commit 08c0ed2)
    
    Co-authored-by: Kinshuk Dua <kinshukdua@gmail.com>
    miss-islington and kinshukdua committed Jan 27, 2022
  4. bpo-46496: news39 for bpo45296 (#30949)

    (cherry picked from commit 9f08814)
    terryjreedy committed Jan 27, 2022
  5. bpo-45296: Clarify close, quit, and exit in IDLE (GH-30936)

    In the File menu, 'Close' and 'Exit' are now 'Close Window' (the current
    one) and 'Exit' is now 'Exit IDLE' (by closing all windows).
    In Shell, 'quit()' and 'exit()' mean 'close Shell'.
    If there are no other windows, this also exits IDLE.
    (cherry picked from commit fcde0bc)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Jan 27, 2022
  6. [3.9] bpo-46502: Remove "How do I tell incomplete input" from FAQ (GH…

    …-30925) (GH-30934)
    
    Since,
    
    - Py_CompileString no longer allows to distinguish "incomplete input"
      from "invalid input"
    - there is no alternative solution available from the Python C API
      due to how the new parser works (rewritten in 3.9)
    - the only supported way is to manually import the codeop module from C
      and use its API as IDLE does, and accept its own complications
    
    it is desirable to remove this Q&A from the official FAQ..
    (cherry picked from commit f0a6481)
    
    Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
    
    Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
    pablogsal and mloskot committed Jan 27, 2022

Commits on Jan 26, 2022

  1. bpo-38472: setup.py uses LC_ALL=C to check the C compiler (GH-30929)

    Fix GCC detection in setup.py when cross-compiling. The C compiler is
    now run with LC_ALL=C. Previously, the detection failed with a German
    locale.
    (cherry picked from commit a9503ac)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Jan 26, 2022
  2. bpo-43698: do not use ... as argument name in docs (GH-30502)

    (cherry picked from commit b9d8980)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Jan 26, 2022
  3. [3.9] bpo-46513: Remove AC_C_CHAR_UNSIGNED / __CHAR_UNSIGNED__ (GH-30851

    ) (GH-30915)
    
    Co-authored-by: Christian Heimes <christian@python.org>
    tiran committed Jan 26, 2022
  4. bpo-46529: increase coverage of typing.Union.__repr__ method (GH-30911

    )
    
    (cherry picked from commit d0c690b)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Jan 26, 2022
  5. bpo-41844: Update IDLE part of What's New 3.9 to 20228 (GH-30905)

    (cherry picked from commit 7cf285d)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Jan 26, 2022

Commits on Jan 25, 2022

  1. bpo-41682: fixed flaky test test_sendfile_close_peer_in_the_middle_of…

    …_receiving (GH-30845) (#30861)
    
    (cherry picked from commit 1c705fd)
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    miss-islington and kumaraditya303 committed Jan 25, 2022
  2. bpo-46491: Allow Annotated on outside of Final/ClassVar (GH-30864)

    We treat Annotated type arg as class-level annotation. This exempts it from checks against Final and ClassVar in order to allow using them in any nesting order.
    
    Automerge-Triggered-By: GH:gvanrossum
    (cherry picked from commit e1abffc)
    
    Co-authored-by: Gregory Beauregard <greg@greg.red>
    miss-islington and GBeauregard committed Jan 25, 2022
Older