X Tutup
The Wayback Machine - https://web.archive.org/web/20230603094944/https://github.com/python/cpython/commits/main
Skip to content

Commits

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 Jun 2, 2023

  1. gh-101524: Only Use Public C-API in the _xxsubinterpreters Module (gh…

    …-105258)
    
    The _xxsubinterpreters module was meant to only use public API.  Some internal C-API usage snuck in over the last few years (e.g. gh-28969).  This fixes that.
    ericsnowcurrently committed Jun 2, 2023
  2. GH-102404, GH-100956: Document how to do a WASI build (GH-105251)

    Also includes a reference shell script to implements what is documented.
    brettcannon committed Jun 2, 2023
  3. gh-102778: update documentation of PyErr_PrintEx and traceback.print_…

    …last() regarding sys.last_exc (#105190)
    iritkatriel committed Jun 2, 2023
  4. gh-87092: avoid gcc warning on uninitialized struct field in assemble… (

    gh-105243)
    
    gh-87092: avoid gcc warning on uninitialized struct field in assemble.c (part2)
    corona10 committed Jun 2, 2023
  5. gh-104799: Default missing lists in AST to the empty list (#104834)

    Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
    JelleZijlstra and AlexWaygood committed Jun 2, 2023
  6. gh-85275: Remove old buffer APIs (#105137)

    They are now abi-only.
    
    Co-authored-by: Victor Stinner <vstinner@python.org>
    methane and vstinner committed Jun 2, 2023

Commits on Jun 1, 2023

  1. gh-92536: Remove PyUnicode_READY() calls (#105210)

    Since Python 3.12, PyUnicode_READY() does nothing and always
    returns 0.
    vstinner committed Jun 1, 2023
  2. gh-92536: Argument Clinic no longer emits PyUnicode_READY() (#105208)

    Since Python 3.12, PyUnicode_READY() does nothing and always
    returns 0.
    
    Argument Clinic now also checks for .cpp files (PC/_wmimodule.cpp).
    vstinner committed Jun 1, 2023
  3. gh-104614: Make Sure ob_type is Always Set Correctly by PyType_Ready() (

    gh-105122)
    
    When I added the relevant condition to type_ready_set_bases() in gh-103912, I had missed that the function also sets tp_base and ob_type (if necessary).  That led to problems for third-party static types.
    
    We fix that here, by making those extra operations distinct and by adjusting the condition to be more specific.
    ericsnowcurrently committed Jun 1, 2023
  4. gh-104341: Call _PyEval_ReleaseLock() with NULL When Finalizing the C…

    …urrent Thread (gh-105109)
    
    This avoids the problematic race in drop_gil() by skipping the FORCE_SWITCHING code there for finalizing threads.
    
    (The idea for this approach came out of discussions with @markshannon.)
    ericsnowcurrently committed Jun 1, 2023
  5. GH-89886: Bump to GNU Autoconf v2.71 (#104925)

    Co-authored-by: Christian Heimes <christian@python.org>
    erlend-aasland and tiran committed Jun 1, 2023
  6. gh-103142: Upgrade binary builds and CI to OpenSSL 1.1.1u (#105174)

    Upgrade builds to OpenSSL 1.1.1u.
    
    This OpenSSL version addresses a pile if less-urgent CVEs since 1.1.1t.
    
    The Mac/BuildScript/build-installer.py was already updated.
    
    Also updates _ssl_data_111.h from OpenSSL 1.1.1u, _ssl_data_300.h from 3.0.9, and adds a new _ssl_data_31.h file from 3.1.1 along with the ssl.c code to use it.
    
    Manual edits to the _ssl_data_300.h file prevent it from removing any existing definitions in case those exist in some peoples builds and were important (avoiding regressions during backporting).
    
    backports of this prior to 3.12 will not include the openssl 3.1 header.
    gpshead committed Jun 1, 2023
  7. gh-105145: Deprecate Py_GetPath() function (#105179)

    Deprecate old Python initialization functions:
    
    * PySys_ResetWarnOptions()
    * Py_GetExecPrefix()
    * Py_GetPath()
    * Py_GetPrefix()
    * Py_GetProgramFullPath()
    * Py_GetProgramName()
    * Py_GetPythonHome()
    
    _tkinter.c uses sys.executable instead of Py_GetProgramName()
    and uses sys.prefix instead of Py_GetPrefix().
    vstinner committed Jun 1, 2023
  8. gh-105182: Remove PyEval_AcquireLock() and PyEval_InitThreads() (#105183

    )
    
    Remove functions in the C API:
    
    * PyEval_AcquireLock()
    * PyEval_ReleaseLock()
    * PyEval_InitThreads()
    * PyEval_ThreadsInitialized()
    
    But keep these functions in the stable ABI.
    
    Mention "make regen-limited-abi" in "make regen-all".
    vstinner committed Jun 1, 2023
  9. gh-89886: Rely on HAVE_SYS_TIME_H (#105058)

    Quoting autoconf (v2.71):
    
        All current systems provide time.h; it need not be checked for.
        Not all systems provide sys/time.h, but those that do, all allow
        you to include it and time.h simultaneously.
    erlend-aasland committed Jun 1, 2023
  10. gh-103224: Use the realpath of the Python executable in test_venv (G…

    …H-103243)
    
    Co-authored-by: Oleg Iarygin <oleg@arhadthedev.net>
    artemmukhin and arhadthedev committed Jun 1, 2023
  11. gh-105107: Remove PyCFunction_Call() function (#105181)

    * Keep the function in the stable ABI.
    * Add unit tests on PyCFunction_Call() since it remains supported in
      the stable ABI.
    vstinner committed Jun 1, 2023
  12. gh-105156: Update Lib/test/clinic.test manually (#105180)

    Update Lib/test/clinic.test manually for updated Py_UNICODE
    converter: it now uses wchar_t type rather than Py_UNICODE.
    vstinner committed Jun 1, 2023
  13. gh-105156: Cleanup usage of old Py_UNICODE type (#105158)

    * refcounts.dat:
    
      * Remove Py_UNICODE functions.
      * Replace Py_UNICODE argument type with wchar_t.
    
    * _PyUnicode_ToLowercase(), _PyUnicode_ToUppercase(),
      _PyUnicode_ToTitlecase() are no longer deprecated in comments.
      It's no longer needed since they now use Py_UCS4 type, rather than
      the deprecated Py_UNICODE type.
    * gdb: Remove unused char_width() method.
    vstinner committed Jun 1, 2023
  14. gh-105145: Remove old functions to config Python init (#105154)

    Remove the following old functions to configure the Python
    initialization, deprecated in Python 3.11:
    
    * PySys_AddWarnOptionUnicode()
    * PySys_AddWarnOption()
    * PySys_AddXOption()
    * PySys_HasWarnOptions()
    * PySys_SetArgvEx()
    * PySys_SetArgv()
    * PySys_SetPath()
    * Py_SetPath()
    * Py_SetProgramName()
    * Py_SetPythonHome()
    * Py_SetStandardStreamEncoding()
    * _Py_SetProgramFullPath()
    
    Most of these functions are kept in the stable ABI, except:
    
    * Py_SetStandardStreamEncoding()
    * _Py_SetProgramFullPath()
    
    Update Doc/extending/embedding.rst and Doc/extending/extending.rst to
    use the new PyConfig API.
    
    _testembed.c:
    
    * check_stdio_details() now sets stdio_encoding and stdio_errors
      of PyConfig.
    * Add definitions of functions removed from the API but kept in the
      stable ABI.
    * test_init_from_config() and test_init_read_set() now use
      PyConfig_SetString() instead of PyConfig_SetBytesString().
    
    Remove _Py_ClearStandardStreamEncoding() internal function.
    vstinner committed Jun 1, 2023
  15. gh-105156: Deprecate the old Py_UNICODE type in C API (#105157)

    Deprecate the old Py_UNICODE and PY_UNICODE_TYPE types in the C API:
    use wchar_t instead.
    
    Replace Py_UNICODE with wchar_t in multiple C files.
    
    Co-authored-by: Inada Naoki <songofacandy@gmail.com>
    vstinner and methane committed Jun 1, 2023

Commits on May 31, 2023

  1. gh-102251: Explicitly free state for test modules with state in test_…

    …import (#105085)
    
    Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
    sunmy2019 and erlend-aasland committed May 31, 2023
Older
X Tutup