Skip to content
Permalink
main

Commits on Feb 20, 2022

  1. bpo-39327: Close file descriptors as soon as possible in shutil.rmtree (

    GH-31384)
    
    It fixes the "Text File Busy" OSError when using 'rmtree' on a
    windows-managed filesystem in via the VirtualBox shared folder
    (and possible other scenarios like a windows-managed network file
    system).
    smackware committed Feb 20, 2022
  2. bpo-46672: fix NameError in asyncio.gather if type check fails (G…

    …H-31187)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    sobolevn and AlexWaygood committed Feb 20, 2022

Commits on Feb 19, 2022

  1. dict: Use DK_LOG_SIZE in hot loop. (GH-31405)

    DK_LOG_SIZE(key) < 8 is faster than DK_SIZE(key) <= 0xff, at least on GCC.
    methane committed Feb 19, 2022
  2. Counter doc mentions three methods, but lists four (GH-30706)

    Was probably caused by the addition of the `total()` method
    bruchar1 committed Feb 19, 2022
  3. bpo-46571: improve typing.no_type_check to skip foreign objects (GH…

    …-31042)
    
    There are several changes:
    1. We now don't explicitly check for any base / sub types, because new name check covers it
    2. I've also checked that `no_type_check` do not modify foreign functions. It was the same as with `type`s
    3. I've also covered `except TypeError` in `no_type_check` with a simple test case, it was not covered at all
    4. I also felt like adding `lambda` test is a good idea: because `lambda` is a bit of both in class bodies: a function and an assignment
    
    <!-- issue-number: [bpo-46571](https://bugs.python.org/issue46571) -->
    https://bugs.python.org/issue46571
    <!-- /issue-number -->
    sobolevn committed Feb 19, 2022
  4. [docs] Correct typos in SSLContext.sni_callback (GH-30623)

    Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de>
    joernheissler and Jörn Heissler committed Feb 19, 2022

Commits on Feb 18, 2022

  1. bpo-46784: Add newly exported expat symbols to the namespace. (GH-31397)

    The libexpat 2.4.1 upgrade from  introduced the following new exported symbols:
    
    * `testingAccountingGetCountBytesDirect`
    * `testingAccountingGetCountBytesIndirect`
    * `unsignedCharToPrintable`
    * `XML_SetBillionLaughsAttackProtectionActivationThreshold`
    * `XML_SetBillionLaughsAttackProtectionMaximumAmplification`
    
    We need to adjust [Modules/expat/pyexpatns.h](https://github.com/python/cpython/blob/master/Modules/expat/pyexpatns.h)
    
    (The newer libexpat upgrade  has no new symbols).
    
    Automerge-Triggered-By: GH:gpshead
    yilei committed Feb 18, 2022
  2. bpo-46329: Change calling sequence (again) (GH-31373)

    * Change calling sequence: Add PUSH_NULL. Merge PRECALL_FUNCTION and PRECALL_METHOD into PRECALL.
    markshannon committed Feb 18, 2022
  3. bpo-46752: Slight improvements to TaskGroup API (GH-31398)

    * Remove task group names (for now)
    
    We're not sure that they are needed, and once in the code
    we would never be able to get rid of them.
    
    Yury wrote:
    
    > Ideally, there should be a way for someone to build a "trace"
    > of taskgroups/task leading to the current running task.
    > We could do that using contextvars, but I'm not sure we should
    > do that in 3.11.
    
    * Pass optional name on to task in create_task()
    
    * Remove a bunch of unused stuff
    gvanrossum committed Feb 18, 2022
  4. Fix mistake in barry_as_FLUFL test (GH-31392)

    Use assertEqual(), not assertTrue(lineno, 2)
    pxeger committed Feb 18, 2022
  5. docs: Link match statement in tutorial (GH-31396)

    Add a link to the `match` statement from its section in the tutorial.
    
    This should be backported to 3.10.
    
    [Initially submitted as #31395 but against the wrong branch. Thanks @Mariatta]
    
    Automerge-Triggered-By: GH:Mariatta
    wjandrea committed Feb 18, 2022

Commits on Feb 17, 2022

  1. bpo-46730: Fix refleak and tighten NULL checks (GH-31389)

    ``PyType_GetQualName`` returns a new reference.
    
    Signed-off-by: Christian Heimes <christian@python.org>
    tiran committed Feb 17, 2022
  2. Update html.parser.rst (GH-30678)

    This PR for the documentation of the [html.parser](https://docs.python.org/3/library/html.parser.html) module will
    
    - fix a terminology mistake (‘start of a tag’ -> ‘start tag of an element’);
    - mention the parameter names of the `HTMLParser.handle_*` methods where missing.
    maggyero committed Feb 17, 2022
  3. bpo-41086: Add exception for uninstantiated interpolation (configpars…

    …er) (GH-21062)
    
    * Add exception for uninstantiated interpolation (configparser)
    
    The current feedback when users try to pass an uninstantiated
    interpolation into a ConfigParser is an error message that does not help
    users solve the problem. This current error of `TypeError: before_set()
    missing 1 required positional argument: 'value'` does not display until
    the parser is used, which usually results in the assumption that
    instantiation of the parser was done correctly. The new exception of
    InterpolationTypeError, will be raised on the line where the
    ConfigParser is instantiated. This will result in users see the line
    that has the error in their backtrace for faster debugging.
    
    There have been a number of bugs created in the issue tracker, which
    could have been addressed by:
    https://bugs.python.org/issue26831 and https://bugs.python.org/issue26469
    
    * 📜🤖 Added by blurb_it.
    
    * Replace custom Error with TypeError
    
    Per feedback from @iritkatriel, the custom InterpolationTypeError has
    been dropped in favour of a TypeError with a custom message, and the
    unittests have been expanded.
    
    * More verbose message
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Co-authored-by: Łukasz Langa <lukasz@langa.pl>
    3 people committed Feb 17, 2022
  4. Close stale PRs without signed CLA (GH-30500)

    Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
    erlend-aasland and hugovk committed Feb 17, 2022
  5. bpo-46745: Fix typo in PositionsIterator (#31322)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    eclipseo and JelleZijlstra committed Feb 17, 2022
Older