Skip to content
Permalink
main
Switch branches/tags

Commits on May 2, 2022

  1. bpo-36819: Fix crashes in built-in encoders with weird error handlers (

    …GH-28593)
    
    If the error handler returns position less or equal than the starting
    position of non-encodable characters, most of built-in encoders didn't
    properly re-size the output buffer. This led to out-of-bounds writes,
    and segfaults.
    serhiy-storchaka committed May 2, 2022

Commits on May 1, 2022

  1. build(deps): bump actions/stale from 4 to 5 (#92108)

    Bumps [actions/stale](https://github.com/actions/stale) from 4 to 5.
    - [Release notes](https://github.com/actions/stale/releases)
    - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
    - [Commits](actions/stale@v4...v5)
    
    ---
    updated-dependencies:
    - dependency-name: actions/stale
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 1, 2022
  2. build(deps): bump actions/github-script from 5 to 6 (#92109)

    Bumps [actions/github-script](https://github.com/actions/github-script) from 5 to 6.
    - [Release notes](https://github.com/actions/github-script/releases)
    - [Commits](actions/github-script@v5...v6)
    
    ---
    updated-dependencies:
    - dependency-name: actions/github-script
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 1, 2022
  3. build(deps): bump actions/setup-node from 2 to 3 (#92110)

    Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2 to 3.
    - [Release notes](https://github.com/actions/setup-node/releases)
    - [Commits](actions/setup-node@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: actions/setup-node
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 1, 2022
  4. build(deps): bump actions/cache from 3.0.1 to 3.0.2 (#92111)

    Bumps [actions/cache](https://github.com/actions/cache) from 3.0.1 to 3.0.2.
    - [Release notes](https://github.com/actions/cache/releases)
    - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
    - [Commits](actions/cache@v3.0.1...v3.0.2)
    
    ---
    updated-dependencies:
    - dependency-name: actions/cache
      dependency-type: direct:production
      update-type: version-update:semver-patch
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] committed May 1, 2022
  5. bpo-39716: Raise on conflicting subparser names. (GH-18605)

    Raise an ArgumentError when the same subparser name is added twice to an
    ArgumentParser.  This is consistent with the (default) behavior when the
    same option string is added twice to an ArgumentParser.
    
    (Support for `conflict_handler="resolve"` could be considered as a
    followup feature, although real use cases seem even rarer than
    "resolve"ing option-strings.)
    
    Automerge-Triggered-By: GH:rhettinger
    anntzer committed May 1, 2022

Commits on Apr 30, 2022

  1. Improving readability of argparse.rst (GH-91751)

    Fixed few typos and enhanced few paragraphs for your review and consideration.
    Trivial contribution towards continuous improvement, so no issue was raised.
    
    Automerge-Triggered-By: GH:rhettinger
    xandrade committed Apr 30, 2022
  2. gh-89253: Add 3.10 whatsnew section for itertools.pairwise (GH-91563)

    #89253
    
    [`pairwise()`](https://docs.python.org/3/library/itertools.html#itertools.pairwise) already has the 'new in python3.10'
    
    Automerge-Triggered-By: GH:rhettinger
    slateny committed Apr 30, 2022
  3. gh-85757: Change wording from nested to inner (GH-91811)

    #85757
    
    https://docs.python.org/3/tutorial/datastructures.html#nested-list-comprehensions
    
    I do think this is clearer, but I wonder if 'nested' should be kept though to get the terminology out there more often. So perhaps it could be something like 'inner (nested) listcomp' or 'nested (inner) listcomp' despite sounding a bit redundant
    
    Automerge-Triggered-By: GH:rhettinger
    slateny committed Apr 30, 2022
  4. gh-91611: Use example.com for documentation, not mydomain.com (#91613)

    example.com is reserved by the IANA as special-use domain name for documentation
    purposes. The domain names are used widely in books, tutorials, sample network
    configurations, and generally as examples for the use of domain name.
    
    On the other hand, mydomain.com is real Domain Name Registration service.
    narusemotoki committed Apr 30, 2022
  5. gh-92063: Enforce types in specialized PRECALL opcodes (GH-92068)

    * Check the types of PRECALL_METHOD_DESCRIPTOR_FAST_WITH_KEYWORDS
    
    * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_NOARGS as well
    
    * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_O
    
    * fix PRECALL_NO_KW_METHOD_DESCRIPTOR_FAST
    sweeneyde committed Apr 30, 2022
  6. gh-92019: Make sqlite3.Blob indexing conform with the norm (#92020)

    - get index now returns an int
    - set index now requires an int in range(0, 256)
    
    Resolves #92019
    erlend-aasland committed Apr 30, 2022
  7. bpo-43323: Fix UnicodeEncodeError in the email module (GH-32137)

    It was raised if the charset itself contains characters not encodable
    in UTF-8 (in particular \udcxx characters representing non-decodable
    bytes in the source).
    serhiy-storchaka committed Apr 30, 2022
  8. gh-91583: AC: Fix regression for functions with defining_class (GH-91739

    )
    
    Argument Clinic now generates the same efficient code as before
    adding the defining_class parameter.
    serhiy-storchaka committed Apr 30, 2022
  9. gh-91760: Deprecate group names and numbers which will be invalid in …

    …future (GH-91794)
    
    Only sequence of ASCII digits will be accepted as a numerical reference.
    The group name in bytes patterns and replacement strings could only
    contain ASCII letters and digits and underscore.
    serhiy-storchaka committed Apr 30, 2022
  10. gh-92049: Forbid pickling constants re._constants.SUCCESS etc (GH-92070)

    Previously, pickling did not fail, but the result could not be unpickled.
    serhiy-storchaka committed Apr 30, 2022
  11. gh-91954: Emit EncodingWarning from locale and subprocess (GH-91977)

    locale.getpreferredencoding() and subprocess.Popen() emit EncodingWarning
    methane committed Apr 30, 2022
  12. gh-91880 - fix typo (GH-92069)

    #91880 (comment) - With thanks to @MojoVampire for spotting this.
    
    Automerge-Triggered-By: GH:gvanrossum
    davidhewitt committed Apr 30, 2022
  13. bpo-43224: Implement substitution of unpacked TypeVarTuple in C (GH-3…

    …1828)
    
    Co-authored-by: Matthew Rahtz <mrahtz@gmail.com>
    serhiy-storchaka and Matthew Rahtz committed Apr 30, 2022
  14. Rephrase typing.assert_never docs (#92061)

    This change is similar to that in #32069
    hauntsaninja committed Apr 30, 2022
Older