Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 25, 2022

  1. gh-90016: Reword sqlite3 adapter/converter docs (#93095)

    Also add adapters and converter recipes.
    
    Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com
    erlend-aasland and CAM-Gerlach committed Jun 25, 2022
  2. gh-77560: Report possible errors in restoring builtins at finalization (

    GH-94255)
    
    Seems in the past the copy of builtins was not made in some scenarios,
    and the error was silenced. Write it now to stderr, so we have a chance
    to see it.
    serhiy-storchaka committed Jun 25, 2022
  3. gh-94207: Fix struct module leak (GH-94239)

    Make _struct.Struct a GC type
    
    This fixes a memory leak in the _struct module, where as soon
    as a Struct object is stored in the cache, there's a cycle from
    the _struct module to the cache to Struct objects to the Struct
    type back to the module. If _struct.Struct is not gc-tracked, that
    cycle is never collected.
    
    This PR makes _struct.Struct GC-tracked, and adds a regression test.
    mdickinson committed Jun 25, 2022
  4. bpo-26253: Add compressionlevel to tarfile stream (GH-2962)

    `tarfile` already accepts a compressionlevel argument for creating
    files. This patch adds the same for stream-based tarfile usage.
    The default is 9, the value that was previously hard-coded.
    jarondl committed Jun 25, 2022
  5. bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, Pa…

    …ramSpec, etc (GH-31148)
    
    The existing test covering this case passed only incidentally. We
    explicitly disallow doing this and add a proper error message.
    
    Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
    GBeauregard and serhiy-storchaka committed Jun 25, 2022

Commits on Jun 24, 2022

  1. gh-93382: Sync up co_code changes with 3.11 (GH-94227)

    Sync up co_code changes with 3.11 commit 852b4d4.
    Fidget-Spinner committed Jun 24, 2022
  2. gh-94172: urllib.request avoids deprecated check_hostname (#94193)

    The urllib.request no longer uses the deprecated check_hostname
    parameter of the http.client module.
    
    Add private http.client._create_https_context() helper to http.client,
    used by urllib.request.
    
    Remove the now redundant check on check_hostname and verify_mode in
    http.client: the SSLContext.check_hostname setter already implements
    the check.
    vstinner committed Jun 24, 2022
  3. gh-84461: Fix ctypes and test_ctypes on Emscripten (#94142)

    - c_longlong and c_longdouble need experimental WASM bigint.
    - Skip tests that need threading
    - Define ``CTYPES_MAX_ARGCOUNT`` for Emscripten. libffi-emscripten 2022-06-23 supports up to 1000 args.
    tiran committed Jun 24, 2022
  4. gh-93692: remove "build finished successfully" message from setup.py (#…

    …93693)
    
    The message was only emitted when the build succeeded _and_ there were
    missing modules.
    erlend-aasland committed Jun 24, 2022
  5. gh-94196: Remove gzip.GzipFile.filename attribute (#94197)

    gzip: Remove the filename attribute of gzip.GzipFile,
    deprecated since Python 2.6, use the name attribute instead. In write
    mode, the filename attribute added '.gz' file extension if it was not
    present.
    vstinner committed Jun 24, 2022
  6. gh-94199: Remove ssl.RAND_pseudo_bytes() function (#94202)

    Remove the ssl.RAND_pseudo_bytes() function, deprecated in Python
    3.6: use os.urandom() or ssl.RAND_bytes() instead.
    vstinner committed Jun 24, 2022
  7. gh-94169: Remove deprecated io.OpenWrapper (#94170)

    Remove io.OpenWrapper and _pyio.OpenWrapper, deprecated in Python
    3.10: just use :func:`open` instead. The open() (io.open()) function
    is a built-in function. Since Python 3.10, _pyio.open() is also a
    static method.
    vstinner committed Jun 24, 2022

Commits on Jun 23, 2022

  1. gh-91219: Add an index_pages default list and parameter to SimpleHTTP…

    …RequestHandler (GH-31985)
    
    * Add an index_pages default list to SimpleHTTPRequestHandler and an
    optional constructor parameter that allows the default indexes pages
    list to be overridden.  This makes it easy to set a new index page name
    without having to override send_head.
    myronww committed Jun 23, 2022
  2. gh-89121: Keep the number of pending SQLite statements to a minimum (#…

    …30379)
    
    Make sure statements that have run to completion or errored are
    reset and cleared off the cursor for all paths in execute() and
    executemany().
    erlend-aasland committed Jun 23, 2022
  3. gh-91456: [Enum] Deprecate default auto() behavior with mixed value t…

    …ypes (GH-91457)
    
    When used with plain Enum, auto() returns the last numeric value assigned, skipping any incompatible member values (such as strings); starting in 3.13 the default auto() for plain Enums will require all the values to be of compatible types, and will return a new value that is 1 higher than any existing value.
    
    Co-authored-by: Ethan Furman <ethan@stoneleaf.us>
    oscar-LT and ethanfurman committed Jun 23, 2022
  4. Closes gh-94152: Update pyvideo.org URL (GH-94075)

    The URL is now https://pyvideo.org, which uses HTTPS and avoids a redirect.
    partev committed Jun 23, 2022
Older