Skip to content
Permalink
3.11
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 Nov 30, 2022

  1. [3.11] GH-98906 re module: search() vs. match() section s…

    …hould mention ```fullmatch()``` (GH-98916) (GH-99912)
    
    GH-98906 ```re``` module: ```search() vs. match()``` section should mention ```fullmatch()``` (GH-98916)
    
    Mention fullmatch along with search and match.
    (cherry picked from commit e0f91de)
    
    Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
    
    Co-authored-by: ram vikram singh <ramvikrams243@gmail.com>
    miss-islington and ramvikrams committed Nov 30, 2022
  2. bpo-47220: Document the optional callback parameter of weakref.WeakMe…

    …thod (GH-25491)
    
    (cherry picked from commit 9628136)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed Nov 30, 2022

Commits on Nov 29, 2022

  1. gh-82836: fix private network check (GH-97733)

    Fixes private checks for network objects. The previous method would incorrectly return True for a private check in cases such as "0.0.0.0/0".
    (cherry picked from commit ed39109)
    
    Co-authored-by: Pete Wicken <2273100+JamoBox@users.noreply.github.com>
    miss-islington and JamoBox committed Nov 29, 2022
  2. Docs: improve accuracy of socketserver reference (GH-24767)

    (cherry picked from commit 052bc12)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed Nov 29, 2022
  3. whatsnew-3.10: Mention PEP 647 in the Release highlights section. (GH…

    …-99853)
    
    Mention PEP 647 in the Release highlights section.
    
    Also re-ordered the list so it matches the order in the details sections below.
    (cherry picked from commit d74a588)
    
    Co-authored-by: Yilei "Dolee" Yang <yileiyang@google.com>
    miss-islington and yilei committed Nov 29, 2022
  4. gh-90717: Update the documentation for the altchars paremeter in base…

    …64 library (GH-94187)
    
    (cherry picked from commit 05dfc53)
    
    Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
    miss-islington and dignissimus committed Nov 29, 2022
  5. gh-99344, gh-99379, gh-99382: Fix issues in substitution of ParamSpec…

    … and TypeVarTuple (GH-99412)
    
    * Fix substitution of TypeVarTuple and ParamSpec together in user generics.
    
    * Fix substitution of ParamSpec followed by TypeVarTuple in generic aliases.
    
    * Check the number of arguments in substitution in user generics containing a
      TypeVarTuple and one or more TypeVar.
    (cherry picked from commit 8f2fb7d)
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    miss-islington and serhiy-storchaka committed Nov 29, 2022

Commits on Nov 28, 2022

  1. [3.11] gh-99811: Use correct variable to search for time in format st…

    …ring (GH-99812) (GH-99851)
    
    (cherry picked from commit 1d1bb95)
    Co-authored-by: cemysce <13400533+cemysce@users.noreply.github.com>
    miss-islington committed Nov 28, 2022
  2. fnmatch docs: link to fnmatch.filter(), not builtins.filter() (G…

    …H-99819)
    
    (cherry picked from commit ca3e611)
    
    Co-authored-by: Matthew Hughes <34972397+matthewhughes934@users.noreply.github.com>
    miss-islington and matthewhughes934 committed Nov 28, 2022
  3. gh-99249: Clarify "read-only" slots tp_bases & tp_mro (GH-99342)

    These slots are marked "should be treated as read-only" in the
    table at the start of the document.  That doesn't say anything about
    setting them in the static struct.
    
    `tp_bases` docs did say that it should be ``NULL`` (TIL!). If you
    ignore that, seemingly nothing bad happens. However, some slots
    may not be inherited, depending on which sub-slot structs are present.
    (FWIW, NumPy sets tp_bases and is affected by the quirk -- though to
    be fair, its DUAL_INHERIT code probably predates tp_bases docs, and
    also the result happens to be benign.)
    
    This patch makes things explicit.
    It also makes the summary table legend easier to scan.
    
    (cherry picked from commit 219696a)
    
    Co-authored-by: Petr Viktorin <encukou@gmail.com>
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    3 people committed Nov 28, 2022
  4. [3.11] bpo-31718: Fix io.IncrementalNewlineDecoder SystemErrors and s…

    …egfaults (GH-18640) (#99841)
    
    Co-authored-by: Oren Milman <orenmn@gmail.com>
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    
    (cherry picked from commit 53eef27)
    kumaraditya303 committed Nov 28, 2022
  5. bpo-41825: restructure docs for the os.wait*() family (GH-22356)

    (cherry picked from commit 492dc02)
    
    Co-authored-by: Georg Brandl <georg@python.org>
    miss-islington and birkenfeld committed Nov 28, 2022
  6. gh-51524: Fix bug when calling trace.CoverageResults with valid infile (

    GH-99629)
    
    (cherry picked from commit 594de16)
    
    Co-authored-by: Furkan Onder <furkanonder@protonmail.com>
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    3 people committed Nov 28, 2022

Commits on Nov 27, 2022

  1. Docs: both sqlite3 "point examples" now adapt to str (GH-99823)

    (cherry picked from commit 276643e)
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    miss-islington and erlend-aasland committed Nov 27, 2022
  2. gh-91340: Document multiprocessing.set_start_method force parameter (G…

    …H-32339)
    
    GH-91340
    
    https://bugs.python.org/issue47184
    (cherry picked from commit dfc2732)
    
    Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
    Automerge-Triggered-By: GH:kumaraditya303
    miss-islington and dignissimus committed Nov 27, 2022
  3. GH-87235: Make sure "python /dev/fd/9 9</path/to/script.py" works on …

    …macOS (GH-99768)
    
    On macOS all file descriptors for a particular file in /dev/fd
    share the same file offset, that is ``open("/dev/fd/9", "r")`` behaves
    more like ``dup(9)`` than a regular open.
    
    This causes problems when a user tries to run "/dev/fd/9" as a script
    because zipimport changes the file offset to try to read a zipfile
    directory. Therefore change zipimport to reset the file offset after
    trying to read the zipfile directory.
    (cherry picked from commit d08fb25)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    miss-islington and ronaldoussoren committed Nov 27, 2022
  4. doc: Remove backslashes in doctest grammar docs (GH-29346)

    (cherry picked from commit 22860db)
    
    Co-authored-by: George Zhang <geetransit@gmail.com>
    miss-islington and GeeTransit committed Nov 27, 2022
  5. bpo-43327: Fix the docs for PyImport_ImportFrozenModuleObject() (GH-2…

    …4659)
    
    The docs stated that PyImport_ImportFrozenModuleObject() returns a
    new reference, but it actually returns an int.
    
    (cherry picked from commit 62a5dc1)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    3 people committed Nov 27, 2022

Commits on Nov 26, 2022

  1. gh-91078: Return None from TarFile.next when the tarfile is empty (GH…

    …-91850)
    
    (cherry picked from commit 78365b8)
    
    Co-authored-by: Sam Ezeh <sam.z.ezeh@gmail.com>
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    3 people committed Nov 26, 2022
  2. gh-99795: Fix typo in importlib.resources.abc (GH-99796)

    Changing TraversableReader to TraversableResources at one place of the documentation.
    
    See GH-99795 for more details.
    (cherry picked from commit 5f88982)
    
    Co-authored-by: busywhitespace <busywhitespace@tuta.io>
    miss-islington and busywhitespace committed Nov 26, 2022
  3. gh-97966: Restore prior expectation that uname_result._fields and ._a…

    …sdict would include the processor. (gh-98343)
    
    (cherry picked from commit dc063a2)
    
    Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
    miss-islington and jaraco committed Nov 26, 2022
  4. GH-95896: posixmodule.c: fix osdefs.h inclusion to not depend on comp…

    …iler (GH-95897)
    
    (cherry picked from commit ec2b76a)
    
    Co-authored-by: TheShermanTanker <32636402+TheShermanTanker@users.noreply.github.com>
    Co-authored-by: Steve Dower <steve.dower@python.org>
    3 people committed Nov 26, 2022
  5. [3.11] gh-99502: mention bytes-like objects as input in `secrets.comp…

    …are_digest` (GH-99512) (#99791)
    
    gh-99502: mention bytes-like objects as input in `secrets.compare_digest` (GH-99512)
    
    Now it is in sync with https://docs.python.org/3/library/hmac.htmlGH-hmac.compare_digest
    It is the same function, just re-exported. So, I guess they should mention the same input types.
    (cherry picked from commit 47d673d)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Nov 26, 2022
  6. Fix typo in __match_args__ doc (GH-99785)

    A opy of GH-98549, whose author (@icecream17) uses a school computer that blocks the CLA site. I did not mention this in commit comment above so CLA bot does not pick up the name and request the CLA again.
    (cherry picked from commit a86d854)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Nov 26, 2022

Commits on Nov 25, 2022

  1. [3.11] Fix misspelling in docs for http.HTTPMethod (GH-99376) (#99451)

    Fix misspelling in docs for http.HTTPMethod (GH-99376)
    (cherry picked from commit f0d12ca)
    
    Co-authored-by: Matt Harasymczuk <github.com@haras.pl>
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    3 people committed Nov 25, 2022
  2. gh-64019: Have attribute table in inspect docs link to module attri…

    …butes instead of listing them (GH-98116)
    
    (cherry picked from commit 7d2dcc5)
    
    Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
    Co-authored-by: Michael Anckaert <michael.anckaert@sinax.be>
    3 people committed Nov 25, 2022
  3. [3.11] gh-85073: Add some missing links to source (GH-99363) (#99586)

    gh-85073: Add some missing links to source (GH-99363)
    
    Add some missing links to source from Python docs
    (cherry picked from commit 27d8dc2)
    
    Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
    miss-islington and slateny committed Nov 25, 2022
  4. bpo-38031: Fix a possible assertion failure in _io.FileIO() (GH-GH-5688)

    (cherry picked from commit d386115)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed Nov 25, 2022
  5. gh-96168: Add sqlite3 row factory how-to (GH-99507)

    (cherry picked from commit 8749121)
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    Co-authored-by: C.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>
    Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com>
    4 people committed Nov 25, 2022

Commits on Nov 24, 2022

  1. Fix rendering of audioop license in Doc/license.rst (GH-99752)

    Also some cosmetic blank line additions for consistency with the
    formatting of the rest of the file.
    (cherry picked from commit b5b3904)
    
    Co-authored-by: Zachary Ware <zach@python.org>
    miss-islington and zware committed Nov 24, 2022
  2. gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)

    Issue: GH-98872
    (cherry picked from commit 4e5f2db)
    
    Co-authored-by: SQLPATCH <95843853+SQLPATCH@users.noreply.github.com>
    Automerge-Triggered-By: GH:kumaraditya303
    miss-islington and SQLPATCH committed Nov 24, 2022

Commits on Nov 23, 2022

  1. Use faster APIs to calculate paths at startup for Store packaged Pyth…

    …on on Windows (GH-99345)
    
    (cherry picked from commit 71a4a2d)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Nov 23, 2022
  2. [3.11] gh-88863: Clear ref cycles to resolve leak when asyncio.open_c…

    …onnection raises (GH-95739) (#99721)
    
    Break reference cycles to resolve memory leak, by
    removing local exception and future instances from the frame.
    (cherry picked from commit 995f617)
    
    Co-authored-by: Dong Uk, Kang <nailbrainz@gmail.com>
    frostbyte134 committed Nov 23, 2022
  3. gh-99619: fix error in documentation of ExceptionGroup.derive() (GH-9…

    …9621)
    
    (cherry picked from commit 5d9183c)
    
    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    miss-islington and iritkatriel committed Nov 23, 2022
  4. GH-95283: Add note about compilers in Mac/README.txt (GH-99506)

    The build machinery assumes that the compiler that's used
    to build on macOS includes an SDK that's at least as new
    as the OS version on the build machine. Explicitly mention
    this in Mac/README.txt.
    (cherry picked from commit 8f024a0)
    
    Co-authored-by: Ronald Oussoren <ronaldoussoren@mac.com>
    miss-islington and ronaldoussoren committed Nov 23, 2022
Older