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 10, 2023

  1. gh-104010: Separate and improve docs for typing.get_origin and `typ…

    …ing.get_args` (#104013)
    
    * separate documentation and examples for both functions
    * add examples demonstrating behaviour with unsupported types
    * document return value of `get_origin` for `ParamSpecArgs` and `ParamSpecKwargs` instances
    
    Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
    chgnrdv and JelleZijlstra committed May 10, 2023
  2. gh-101819: Adapt _io._BufferedIOBase_Type methods to Argument Clinic (#…

    …104355)
    
    Make sure the defining class is passed to all methods,
    so we can easily fetch module state from them in the future.
    erlend-aasland committed May 10, 2023
  3. gh-104252: Immortalize Py_EMPTY_KEYS (gh-104253)

    This was missed in gh-19474.  It matters for with a per-interpreter GIL since PyDictKeysObject.dk_refcnt breaks isolation and leads to races.
    ericsnowcurrently committed May 10, 2023
  4. gh-101819: Harden _io init (#104352)

    Fix potential refleak if PyModule_AddObject() fails.
    erlend-aasland committed May 10, 2023
  5. gh-103848: Adds checks to ensure that bracketed hosts found by urlspl…

    …it are of IPv6 or IPvFuture format (#103849)
    
    * Adds checks to ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    JohnJamesUtley and gpshead committed May 10, 2023

Commits on May 9, 2023

  1. gh-74895: adjust tests to work on Solaris (#104326)

    Solaris is unusual here, but apparently everyone is happy when SOCK_STREAM is explicitly specified.
    kulikjak committed May 9, 2023
  2. gh-101819: Refactor _io in preparation for module isolation (#104334)

    - Replace query with parameter in bufferediobase_unsupported()
    - Replace query with parameter in iobase_unsupported()
    - Hide delegate: Add method wrapper for _PyIOBase_check_seekable
    - Hide delegate: Add method wraper for _PyIOBase_check_readable
    - Hide delegate: Add method wraper for _PyIOBase_check_writable
    - Replace query with parameter in _PyIOBase_check_seekable()
    - Replace query with parameter in _PyIOBase_check_readable()
    - Replace query with parameter in _PyIOBase_check_writable()
    erlend-aasland committed May 9, 2023
  3. gh-102327: Extend docs for "url" and "headers" parameters to HTTPConn…

    …ection.request()
    
    Added example on how to use the HTTPConnection object for making GET request.
    
    Original issue: #102327
    
    ---------
    
    Co-authored-by: Éric <earaujo@caravan.coop>
    davidfstr and merwok committed May 9, 2023
  4. gh-97933: (PEP 709) inline list/dict/set comprehensions (#101441)

    Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    3 people committed May 9, 2023
  5. gh-99889: Fix directory traversal security flaw in uu.decode() (#104096)

    * Fix directory traversal security flaw in uu.decode()
    * also check absolute paths and os.altsep
    * Add a regression test.
    
    ---------
    
    Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
    samcarroll42 committed May 9, 2023
  6. gh-104139: Add itms-services to uses_netloc urllib.parse. (#104312)

    Teach unsplit to retain the `"//"` when assembling `itms-services://?action=generate-bugs` style
    [Apple Platform Deployment](https://support.apple.com/en-gb/guide/deployment/depce7cefc4d/web) URLs.
    gpshead committed May 9, 2023
  7. gh-104276: Make _struct.unpack_iterator type use type flag instead …

    …of custom constructor (#104277)
    chgnrdv committed May 9, 2023
  8. gh-90656: Add platform triplets for 64-bit LoongArch (LA64) (#30939)

    Signed-off-by: Zhang Na <zhangna@loongson.cn>
    Co-authored-by: WANG Xuerui <git@xen0n.name>
    loongson-zn and xen0n committed May 9, 2023
  9. gh-104180: Read SOCKS proxies from macOS System Configuration (#104181)

    read SOCKS proxies from macOS System Configuration in ``urllib.request``.
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
    3 people committed May 9, 2023
  10. gh-97696 Remove unnecessary check for eager_start kwarg (#104188)

    Instead, add docstring to create_eager_task_factory.
    jbower-fb committed May 9, 2023

Commits on May 8, 2023

  1. GH-104308: socket.getnameinfo should release the GIL (#104307)

    * socket.getnameinfo should release the GIL
    
    * 📜🤖 Added by blurb_it.
    
    ---------
    
    Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
    njsmith and blurb-it[bot] committed May 8, 2023
  2. gh-104310: Add importlib.util.allowing_all_extensions() (gh-104311)

    (I'll be adding docs for this separately.)
    ericsnowcurrently committed May 8, 2023
  3. gh-99113: A Per-Interpreter GIL! (gh-104210)

    This is the culmination of PEP 684 (and of my 8-year long multi-core Python project)!
    
    Each subinterpreter may now be created with its own GIL (via Py_NewInterpreterFromConfig()).  If not so configured then the interpreter will share with the main interpreter--the status quo since subinterpreters were added decades ago.  The main interpreter always has its own GIL and subinterpreters from Py_NewInterpreter() will always share with the main interpreter.
    ericsnowcurrently committed May 8, 2023
  4. gh-89550: Buffer GzipFile.write to reduce execution time by ~15% (#10…

    …1251)
    
    Use `io.BufferedWriter` to buffer gzip writes.
    
    ---------
    
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    Co-authored-by: Gregory P. Smith <greg@krypto.org>
    3 people committed May 8, 2023
  5. gh-104223: Fix issues with inheriting from buffer classes (#104227)

    Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
    JelleZijlstra and kumaraditya303 committed May 8, 2023
  6. gh-99108: fix typo in Modules/Setup (#104293)

    case sensitive filename
    msprotz committed May 8, 2023
Older