Skip to content
Permalink
3.9

Commits on Feb 18, 2022

  1. Fix mistake in barry_as_FLUFL test (GH-31392)

    Use assertEqual(), not assertTrue(lineno, 2)
    (cherry picked from commit 5f1c205)
    
    Co-authored-by: Patrick Reader <_@pxeger.com>
    miss-islington and pxeger committed Feb 18, 2022

Commits on Feb 17, 2022

  1. 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.
    (cherry picked from commit 2945f5a)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed Feb 17, 2022
  2. [3.9] Become a CODEOWNER for typing (GH-31374) (GH-31381)

    (cherry picked from commit 6f1efd1)
    
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    
    Automerge-Triggered-By: GH:JelleZijlstra
    miss-islington committed Feb 17, 2022
  3. bpo-46333: Honor module parameter in ForwardRef (GH-30536)

    The `module` parameter carries semantic information about the forward ref.
    Forward refs are different if they refer to different module even if they
    have the same name. This affects the `__eq__`, `__repr__` and `__hash__` methods.
    
    Co-authored-by: Andreas Hangauer <andreas.hangauer@siemens.com>
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
    (cherry picked from commit 6e7b813)
    
    Co-authored-by: aha79 <34090357+aha79@users.noreply.github.com>
    miss-islington and aha79 committed Feb 17, 2022

Commits on Feb 16, 2022

  1. bpo-46762: Fix an assert failure in f-strings where > or < is the las…

    …t character if the f-string is missing a trailing right brace. (GH-31365)
    
    (cherry picked from commit ffd9f8f)
    
    Co-authored-by: Eric V. Smith <ericvsmith@users.noreply.github.com>
    miss-islington and ericvsmith committed Feb 16, 2022

Commits on Feb 15, 2022

  1. bpo-46741: Update asyncio.protocols.BufferedProtocol docstring (31327)

    The docstring for `BufferedProtocol` states that the class is still an "experimental API", but it has been considered stable since 3.8.
    (cherry picked from commit 1d81fdc)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    miss-islington and AlexWaygood committed Feb 15, 2022

Commits on Feb 14, 2022

  1. Update the OMG link (GH-30383)

    (cherry picked from commit 04215a4)
    
    Co-authored-by: David Gilbertson <gilbertson.david@gmail.com>
    miss-islington and davidgilbertson committed Feb 14, 2022
  2. doc: use colon for all color's rangs (GH-28998)

    (cherry picked from commit 6b9f27d)
    
    Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
    miss-islington and rffontenelle committed Feb 14, 2022
  3. bpo-46436: Fix command-line option -d/--directory in module http.serv…

    …er (GH-30701)
    
    Fix command-line option -d/--directory in http.server main
    function that was ignored when combined with --cgi.
    
    Automerge-Triggered-By: GH:merwok
    (cherry picked from commit 2d08034)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed Feb 14, 2022
  4. bpo-38619: Update the documentation for UUID.hex (GH-29830)

    Explicitly state that it is lowercase.
    
    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    (cherry picked from commit 5d53cf3)
    
    Co-authored-by: 180909 <wjh180909@gmail.com>
    miss-islington and 180909 committed Feb 14, 2022
  5. Fix minor grammar error (GH-31325)

    "an" followed by consonant should be "a"
    (cherry picked from commit 0d29e7a)
    
    Co-authored-by: Scott Noyes <snoyes@gmail.com>
    miss-islington and snoyes committed Feb 14, 2022
  6. [3.9] Corrections to format precision description. (GH-31291) (GH-31321)

    * `precision` field is a decimal integer
      * clarify that stated limitations are on presentation type
        rather than input value type.  Especially misleading is
        "precision is not allowed for integer values", since integer
        value input to a format like `.1f` is fine.
      * regarding max field size, replace "non-number" with "string",
        which is the only non-numeric presentation type
    
    Automerge-Triggered-By: GH:ericvsmith.
    (cherry picked from commit 1d6ce67)
    
    Co-authored-by: John Belmonte <john@neggie.net>
    belm0 committed Feb 14, 2022

Commits on Feb 13, 2022

  1. bpo-46615: Don't crash when set operations mutate the sets (GH-31120) (

    …GH-31312)
    
    Ensure strong references are acquired whenever using `set_next()`. Added randomized test cases for `__eq__` methods that sometimes mutate sets when called.
    
    (cherry picked from commit 4a66615)
    sweeneyde committed Feb 13, 2022
  2. bpo-45447: Add entry to What's new 3.9 (GH-31305)

    (cherry picked from commit cef91ca)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 13, 2022
  3. bpo-45447: Add syntax highlighting for .pyi files in IDLE (GH-28950)

    Also add .pyi to the python extensions in the "File-open" and "File-save" dialogues.
    Add util.py to contain objects that are used in multiple idlelib modules
    and have no dependencies on any of them.
    
    Co-authored-by: E-Paine <63801254+E-Paine@users.noreply.github.com>
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    (cherry picked from commit 50cf499)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    (cherry picked from commit 9fabcfb)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 13, 2022
  4. [3.9] bpo-45948: Remove constructor discrepancy in C version of Eleme…

    …ntTree.XMLParser (GH-31152) (GH-31299)
    
    Both implementations accept target=None now.
    
    (cherry picked from commit 168fd64)
    jacobtylerwalls committed Feb 13, 2022

Commits on Feb 11, 2022

  1. bpo-46483: [doc] pathlib classes no longer support parameterized gene…

    …rics (GH-31281)
    
    Remove pathlib classes from the list in stdtypes.rst of classes
    that can be parameterized at runtime.
    (cherry picked from commit e0bc8ee)
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    miss-islington and AlexWaygood committed Feb 11, 2022
  2. Fix the signature of multiprocessing.set_executable (GH-31276)

    Automerge-Triggered-By: GH:merwok
    (cherry picked from commit 4f93866)
    
    Co-authored-by: Géry Ogam <gery.ogam@gmail.com>
    miss-islington and maggyero committed Feb 11, 2022

Commits on Feb 10, 2022

  1. [3.9] Fix warning: asyncio.events._event_loop_policy was modified by …

    …test_asyncio (GH-31253). (GH-31256)
    
    (cherry picked from commit 012e77e)
    
    Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
    asvetlov committed Feb 10, 2022

Commits on Feb 9, 2022

  1. bpo-45863: tarfile: don't zero out header fields unnecessarily (GH-29693

    )
    
    Numeric fields of type float, notably mtime, can't be represented
    exactly in the ustar header, so the pax header is used. But it is
    helpful to set them to the nearest int (i.e. second rather than
    nanosecond precision mtimes) in the ustar header as well, for the
    benefit of unarchivers that don't understand the pax header.
    
    Add test for tarfile.TarInfo.create_pax_header to confirm correct
    behaviour.
    (cherry picked from commit bf2d44f)
    
    Co-authored-by: Joshua Root <jmr@macports.org>
    miss-islington and jmroot committed Feb 9, 2022
  2. bpo-46685: cover TypeError of ForwardRef(1) in test_typing (GH-…

    …31223)
    
    (cherry picked from commit d2d1d49)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Feb 9, 2022

Commits on Feb 7, 2022

  1. bpo-46638: Makes registry virtualisation setting stable when building…

    … MSIX packages (GH-31130)
    
    (cherry picked from commit 3a5afc1)
    miss-islington committed Feb 7, 2022
  2. bpo-46648: Rewrite test_urllib2.test_issue16464() with a local HTTP s…

    …erver (GH-31186)
    
    Re-enable test_issue16464() of test_urllib2, move it to urllib2_localnet
    and use the local HTTP server rather than an external HTTP server.
    (cherry picked from commit 8e98175)
    
    Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
    miss-islington and sobolevn committed Feb 7, 2022
  3. bpo-40479: Fix undefined behavior in Modules/_hashopenssl.c (GH-31153)

    va_end() must be called before returning.
    (cherry picked from commit 59e004a)
    
    Co-authored-by: Zackery Spytz <zspytz@gmail.com>
    miss-islington and ZackerySpytz committed Feb 7, 2022

Commits on Feb 6, 2022

  1. bpo-46648: Skip test_urllib2.test_issue16464() (GH-31161)

    POST requests to http://www.example.com/ fail randomly.
    (cherry picked from commit 1578de2)
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    miss-islington and vstinner committed Feb 6, 2022

Commits on Feb 4, 2022

  1. [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132)

    @coroutine in removed in 3.11, not 3.10.
    (cherry picked from commit 5603db4)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 4, 2022
  2. bpo-46629: Update classicAppCompat.sccd for new signing certificate (G…

    …H-31111)
    
    (cherry picked from commit 9b4e3d9)
    
    Co-authored-by: Steve Dower <steve.dower@python.org>
    miss-islington and zooba committed Feb 4, 2022
  3. Optimize images by IMGbot (GH-21348)

    Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
    (cherry picked from commit ba650af)
    
    Co-authored-by: Manish Kumar  <manishprivet@protonmail.com>
    miss-islington and manishprivet committed Feb 4, 2022
  4. bpo-46588: fix typo in test_calltip.py (GH-31119)

    (cherry picked from commit 222865d)
    
    Co-authored-by: Caio Agiani <agianicaio@gmail.com>
    miss-islington and caioagiani committed Feb 4, 2022

Commits on Feb 3, 2022

  1. bpo-46630: Fix initial focus of IDLE query dialogs (GH-31112)

    On Windows, one had to Tab or click on the entry box
    to get a cursor and be able to enter anything.
    (cherry picked from commit d1df81a)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 3, 2022
  2. bpo-45975: IDLE - Remove extraneous parens (GH-31107)

    mistakenly included in 3 files in previous PR
    and backported both to 3.10 and 3.9.
    (cherry picked from commit 916d0d8)
    
    Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
    miss-islington and terryjreedy committed Feb 3, 2022
  3. [3.9] [3.10] bpo-46576: bpo-46524: Disable compiler optimization with…

    …in test_peg_generator. (GH-31015) (GH-31089) (GH-31093)
    
    Disable compiler optimization within test_peg_generator.
    
    This speed up test_peg_generator by always disabling compiler
    optimizations by using -O0 or equivalent when the test is building its
    own C extensions.
    
    A build not using --with-pydebug in order to speed up test execution
    winds up with this test taking a very long time as it would do
    repeated compilation of parser C code using the same optimization
    flags as CPython was built with.
    
    This speeds the test up 6-8x on gps-raspbian.
    
    Also incorporate's GH-31017's win32 conditional and flags.
    
    Co-authored-by: Kumar Aditya kumaraditya303.
    (cherry picked from commit 164a017)
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    (cherry picked from commit f5ebec4)
    
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    
    Automerge-Triggered-By: GH:gpshead
    miss-islington committed Feb 3, 2022
  4. [3.9] bpo-45975: Use walrus operator for some idlelib while loops (GH…

    …-31083)
    
    co-authored by Nick Drozd
    cherrypicked from 51a95be
    terryjreedy committed Feb 3, 2022
Older