X Tutup
The Wayback Machine - https://web.archive.org/web/20220627065806/https://github.com/python/cpython/commits/main
Skip to content
Permalink
main
Switch branches/tags

Commits on Jun 27, 2022

  1. gh-90005: Rename MODULE_EGG variable to MODULE_EGG_STATE (GH-94301)

    It makes it easier to look for module states in sysconfig without
    special casing suffixes "_CFLAGS", "_DEPS", "_LDFLAGS", "_OBJS",
    and "CTYPES_MALLOC_CLOSURE".
    tiran committed Jun 27, 2022

Commits on Jun 26, 2022

  1. gh-94192: Fix error for dictionary literals with invalid expression a…

    …s value. (#94304)
    
    * Fix error for dictionary literals with invalid expression as value.
    
    * Remove trailing whitespace
    wookie184 committed Jun 26, 2022
  2. gh-90005: Port _ctypes to PY_STDLIB_MOD (GH-32229)

    Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no>
    
    Automerge-Triggered-By: GH:tiran
    tiran committed Jun 26, 2022
  3. gh-94226: Remove the locale.format() function (#94229)

    Remove the locale.format() function, deprecated in Python
    3.7: use locale.format_string() instead.
    
    Remove TestFormatPatternArg test case: it is irrelevant for
    locale.format_string() which accepts complex formats.
    vstinner committed Jun 26, 2022
  4. gh-87347: Fix PyObject_NEW() regression (#94234)

    Don't add parenthesis around the type parameter.
    
    Add unit tests on PyObject_NEW() and similar functions.
    vstinner committed Jun 26, 2022
  5. gh-94172: urllib.request avoids deprecated key_file/cert_file (#94232)

    The urllib.request module no longer uses the deprecated key_file and
    cert_file parameter of the http.client module.
    vstinner committed Jun 26, 2022
  6. Run Tools/scripts/reindent.py (#94225)

    Reindent files which were not properly formatted (PEP 8: 4 spaces).
    
    Remove also some trailing spaces.
    vstinner committed Jun 26, 2022
  7. gh-93259: Validate arg to Distribution.from_name. (GH-94270)

    Syncs with importlib_metadata 4.12.0.
    jaraco committed Jun 26, 2022

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
Older
X Tutup