Skip to content
Permalink
main

Commits on Feb 2, 2022

  1. bpo-45173: Keep configparser deprecations until Python 3.12 (GH-30952)

    * Revert "bpo-45173 Remove configparser deprecations"
    
    This reverts commit df2284b.
    
    * bpo-45173: Note these configparser deprecations will be removed in 3.12
    hugovk committed Feb 2, 2022
  2. bpo-37705: Remove orphaned PC/errmap.mak (GH-29724)

    After GH-15623 deleted `generrmap.c`, a related mak-file stopped working. The mak contains generrmap-related rules only so it should be removed altogether.
    
    Further search for `errmap\.mak|generrmap` regex through content of CPython files shows no dangling reference left.
    
    Since generrmap is already effectively removed, this pull request contains no blurp.
    arhadthedev committed Feb 2, 2022
  3. bpo-46433: _PyType_GetModuleByDef: handle static types in MRO (GH-30696)

    Automerge-Triggered-By: GH:encukou
    encukou committed Feb 2, 2022
  4. bpo-45459: Add Py_buffer to limited API (GH-29991)

    - [x] ``Py_buffer`` struct
    - [x] ``PyBuffer_*()`` API functions
    - [x] ``PyBUF_*`` constants
    - [x] ``Py_bf_getbuffer`` and ``Py_bf_releasebuffer`` type slots
    - [x] ``PyMemoryView_FromBuffer()`` API
    - [x] tests for limited API
    - [x] ``make regen-limited-abi``
    - [x] documentation update
    - [ ] export ``PyPickleBuffer*()`` API ???
    tiran committed Feb 2, 2022
  5. bpo-43012: remove pathlib._Accessor (GH-25701)

    Per Pitrou:
    
    > The original intent for the “accessor” thing was to have a variant that did all accesses under a filesystem tree in a race condition-free way using openat and friends. It turned out to be much too hairy to actually implement, so was entirely abandoned, but the accessor abstraction was left there.
    
    https://discuss.python.org/t/make-pathlib-extensible/3428/2
    
    Accessors are:
    
    - Lacking any internal purpose - '_NormalAccessor' is the only implementation
    - Lacking any firm conceptual difference to `Path` objects themselves (inc. subclasses)
    - Non-public, i.e. underscore prefixed - '_Accessor' and '_NormalAccessor' 
    - Unofficially used to implement customized `Path` objects, but once once [bpo-24132]() is addressed there will be a supported route for that.
    
    This patch preserves all existing behaviour.
    barneygale committed Feb 2, 2022
  6. bpo-46414: Add typing.reveal_type (#30646)

    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    JelleZijlstra and sobolevn committed Feb 2, 2022
  7. bpo-46602: Do not append conftest.c (GH-31062)

    The heredoc creation statements use >> to append conftest.c.  This can cause
    tricky build issues if the file is not correctly removed prior to its
    name being reused (such name is reused several times for different
    contextual tests during the build).  One such result from appending may
    cause #include <ac_nonexistent.h> to persist when testing to acquire
    PLATFORM_TRIPLET.  This can then lead to downstream issues concerning SOABI.
    adanhawth committed Feb 2, 2022
  8. bpo-44359: Fix test_ftplib unhandled thread exceptions (GH-31069)

    test_ftplib now silently ignores socket errors to prevent logging
    unhandled threading exceptions.
    vstinner committed Feb 2, 2022
  9. bpo-46591: Make About IDLE doc link label clickable (GH-30251)

    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    wesinator and terryjreedy committed Feb 2, 2022

Commits on Feb 1, 2022

  1. bpo-14916: use specified tokenizer fd for file input (GH-31006)

    @pablogsal, sorry i failed to rebase to main, so i recreated #22190 (comment)
    
    > PyRun_InteractiveOne\*() functions allow to explicitily set fd instead of stdin.
    but stdin was hardcoded in readline call.
    
    > This patch does not fix target file for prompt unlike original bpo one : prompt fd is unrelated to tokenizer source which could be read only. It is more of a bugfix regarding the docs :  actual documentation say "prompt the user" so one would expect prompt to go on stdout not a file for both PyRun_InteractiveOne\*() and PyRun_InteractiveLoop\*().
    
    Automerge-Triggered-By: GH:pablogsal
    pmp-p committed Feb 1, 2022
  2. bpo-46600: Fix test_gdb.test_pycfunction() for clang -Og (GH-31058)

    Fix test_gdb.test_pycfunction() for Python built with clang -Og.
    Tolerate inlined functions in the gdb traceback.
    
    When _testcapimodule.c is built by clang -Og, _null_to_none() is
    inlined in meth_varargs() and so gdb returns _null_to_none() as
    the frame #1. If it's not inlined, meth_varargs() is the frame #1.
    vstinner committed Feb 1, 2022
  3. bpo-45953: Preserve backward compatibility on some PyThreadState fiel…

    …d names. (GH-31038)
    
    The gevent project is using the two `PyThreadState` fields I renamed in gh-30590.  This PR fixes the names.  See #msg412046.
    ericsnowcurrently committed Feb 1, 2022
  4. 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>
    mooncell07 and blurb-it committed Feb 1, 2022
  5. bpo-45925: Update macOS installer to SQLite 3.37.2 (GH-30921)

    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    kumaraditya303 and erlend-aasland committed Feb 1, 2022
  6. bpo-46600: ./configure --with-pydebug uses -Og with clang (GH-31052)

    Fix the test checking if the C compiler supports -Og option in the
    ./configure script to also use -Og on clang which supports it.
    vstinner committed Feb 1, 2022
  7. bpo-46355: What's New: Note that PyFrameObject are private (GH-31032)

    This adds a slightly more detailed explanation of the change.
    The most important point is that the changed/removed fields
    were "subject to change" to begin with.
    encukou 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>
    3 people committed Jan 31, 2022

Commits on Jan 29, 2022

  1. Fix a UnboundLocalError bug in test_sysconfig (GH-31000)

    Accidentally introduced by GH-24502
    brettcannon committed Jan 29, 2022

Commits on Jan 28, 2022

  1. bpo-29688: document and test pathlib.Path.absolute() (GH-26153)

    Co-authored-by: Brett Cannon <brett@python.org>
    Co-authored-by: Brian Helba <brian.helba@kitware.com>
    3 people committed Jan 28, 2022
  2. bpo-43112: detect musl as a separate SOABI (GH-24502)

    musl libc and gnu libc are not ABI compatible so we need set different
    SOABI for musl and not simply assume that all linux is linux-gnu.
    
    Replace linux-gnu with the detected os for the build from config.guess
    for linux-musl*.
    ncopa committed Jan 28, 2022
Older