IDLE

工具/示例

  • gh-111903 [https://github.com/python/cpython/issues/111903]: Argument Clinic now supports the @critical_section directive that instructs Argument Clinic to generate a critical section around the function call, which locks the self object in --disable-gil builds. Patch by Sam Gross.

C API

  • gh-112026 [https://github.com/python/cpython/issues/112026]: Add again the private PyThreadStateUncheckedGet() function as an alias to the new public PyThreadState_GetUnchecked() function. Patch by Victor Stinner.

  • gh-112026 [https://github.com/python/cpython/issues/112026]: Restore the removed PyDictGetItemStringWithError() function. It is used by numpy. Patch by Victor Stinner.

  • gh-112026 [https://github.com/python/cpython/issues/112026]: Restore removed private C API functions, macros and structures which have no simple replacement for now:

    • PyDictGetItem_KnownHash()

    • PyDictNewPresized()

    • PyHASHBITS

    • PyHASHIMAG

    • PyHASHINF

    • PyHASHMODULUS

    • PyHASHMULTIPLIER

    • PyLongCopy()

    • PyLongFromDigits()

    • PyLongNew()

    • PyLongSign()

    • PyObjectCallMethodId()

    • PyObjectCallMethodNoArgs()

    • PyObjectCallMethodOneArg()

    • PyObjectCallOneArg()

    • PyObjectEXTRA_INIT

    • PyObjectFastCallDict()

    • PyObjectGetAttrId()

    • PyObjectVectorcall()

    • PyObjectVectorcallMethod()

    • PyStackAsDict()

    • PyThreadCurrentFrames()

    • _PyUnicodeWriter structure

    • PyUnicodeWriterDealloc()

    • PyUnicodeWriterFinish()

    • PyUnicodeWriterInit()

    • PyUnicodeWriterPrepare()

    • PyUnicodeWriterPrepareKind()

    • PyUnicodeWriterWriteASCIIString()

    • PyUnicodeWriterWriteChar()

    • PyUnicodeWriterWriteLatin1String()

    • PyUnicodeWriterWriteStr()

    • PyUnicodeWriterWriteSubstring()

    • PyUnicodeAsString()

    • PyUnicodeFromId()

    • PyVectorcallFunction()

    • PyIDENTIFIER()

    • Pyc_abs()

    • Pyc_diff()

    • Pyc_neg()

    • Pyc_pow()

    • Pyc_prod()

    • Pyc_quot()

    • Pyc_sum()

    • Pystatic_string()

    • Pystatic_string_init()

Patch by Victor Stinner.

Python 3.13.0 alpha 1

Release date: 2023-10-13