Skip to content
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Commits on May 19, 2023

  1. gh-103921: Rename "type" header in argparse docs (#104654)

    This allows :keyword:`type` to link to docs for the new `type`
    statement (being written in gh-104642) instead of to this header
    in the argparse docs.
    JelleZijlstra committed May 19, 2023
  2. GH-103545: Add macOS specific constants for os.setpriority to ``o…

    …s`` (#104606)
    
    This adds a number of PRIO_DARWIN_* constants to the os module for use with os.setpriority.
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    ronaldoussoren and blurb-it[bot] committed May 19, 2023
  3. gh-104602: ensure all cellvars are known up front (#104603)

    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    carljm and JelleZijlstra committed May 19, 2023

Commits on May 18, 2023

  1. gh-74690: Don't set special protocol attributes on non-protocol subcl…

    …asses of protocols (#104622)
    
    Don't set special protocol attributes on non-protocol subclasses of protocols
    AlexWaygood committed May 18, 2023
  2. gh-104050: Add more type annotations to Argument Clinic (#104628)

    Annotate the following:
    
    - methods of class Class
    - methods of class Module
    - methods of class PythonParser
    - function compute_checksum()
    - function parse_file()
    - global variable unsupported_special_methods
    erlend-aasland committed May 18, 2023
  3. gh-104629: Don't skip test_clinic if _testclinic is missing (#104630)

    Just skip the tests that depend on the _testclinic extension module;
    we can still run the Python tests.
    erlend-aasland committed May 18, 2023
  4. gh-104050: Improve some typing around defaults and sentinel values (#…

    …104626)
    
    - Convert `unspecified` and `unknown` to be members of a `Sentinels` enum, rather than instances of bespoke classes.
      - An enum feels more idiomatic here, and works better with type checkers.
      - Convert some `==` and `!=` checks for these values to identity checks, which are more idiomatic with sentinels.
      - _Don't_ do the same for `Null`, as this needs to be a distinct type due to its usage in `clinic.py`.
    - Use `object` as the annotation for `default` across `clinic.py`. `default` can be literally any object, so `object` is the correct annotation here.
    
    ---
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    AlexWaygood and erlend-aasland committed May 18, 2023
  5. gh-104146: Remove unused vars from Argument Clinic (#104627)

    Remove 'in_classes' and 'so_far' from DSLParser.directive_module()
    erlend-aasland committed May 18, 2023
  6. GH-104484: Add case_sensitive argument to pathlib.PurePath.match() (G…

    …H-104565)
    
    Co-authored-by: Barney Gale <barney.gale@gmail.com>
    thirumurugan-git and barneygale committed May 18, 2023
  7. GH-96803: Document and test new unstable internal frame API functions (

    …GH-104211)
    
    Weaken contract of PyUnstable_InterpreterFrame_GetCode to return PyObject*.
    markshannon committed May 18, 2023
  8. GH-104580: Don't cache eval breaker in interpreter (GH-104581)

    Move eval-breaker to the front of the interpreter state.
    markshannon committed May 18, 2023
  9. gh-104374: Remove access to class scopes for inlined comprehensions (#…

    …104528)
    
    Co-authored-by: Carl Meyer <carl@oddbird.net>
    JelleZijlstra and carljm committed May 18, 2023

Commits on May 17, 2023

  1. gh-104555: Runtime-checkable protocols: Don't let previous calls to `…

    …isinstance()` influence whether `issubclass()` raises an exception (#104559)
    
    Co-authored-by: Carl Meyer <carl@oddbird.net>
    AlexWaygood and carljm committed May 17, 2023
  2. gh-104050: Add type hints to Argument Clinic converter keywords (#104588

    )
    
    Introduce TypeSet, and use it to annotate the 'accept' keyword of
    various C converters. Also add some missing return annotations for
    converter init functions.
    erlend-aasland committed May 17, 2023
  3. gh-104496: IDLE - fix About for mixed tcl/tk versions (#104585)

    Print both if they are different, as may happen in the future.
    terryjreedy committed May 17, 2023
  4. gh-104372: Cleanup _posixsubprocess make_inheritable for async sign…

    …al safety and no GIL requirement (#104518)
    
    Move all of the Python C API calls into the parent process up front
    instead of doing PyLong_AsLong and PyErr_Occurred and PyTuple_GET from
    the post-fork/vfork child process.
    
    Much of this was long overdue. We shouldn't have been using PyTuple and
    PyLong APIs within all of these low level functions anyways.
    gpshead committed May 17, 2023
  5. typing: Add more tests for TypeVar (#104571)

    During the PEP 695 implementation at one point I made
    TypeVar.__name__ return garbage, and all of test_typing passed.
    So I decided to add a few more tests. In the process I discovered
    a minor incompatibility from the C implementation of TypeVar:
    empty constraints were returned as None instead of an empty tuple.
    JelleZijlstra committed May 17, 2023
  6. typing: Use PEP 695 syntax in typing.py (#104553)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    JelleZijlstra and AlexWaygood committed May 17, 2023
  7. gh-102153: Start stripping C0 control and space chars in urlsplit (#…

    …102508)
    
    `urllib.parse.urlsplit` has already been respecting the WHATWG spec a bit #25595.
    
    This adds more sanitizing to respect the "Remove any leading C0 control or space from input" [rule](https://url.spec.whatwg.org/#url-parsing:~:text=Remove%20any%20leading%20and%20trailing%20C0%20control%20or%20space%20from%20input.) in response to [CVE-2023-24329](https://nvd.nist.gov/vuln/detail/CVE-2023-24329).
    
    ---------
    
    Co-authored-by: Gregory P. Smith [Google] <greg@krypto.org>
    illia-v and gpshead committed May 17, 2023
  8. gh-104469: Update README.txt for _testcapi (gh-104529)

    * gh-104469: Update README.txt for _testcapi
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
    3 people committed May 17, 2023
Older