summaryrefslogtreecommitdiffstats
path: root/Doc/data
Commit message (Collapse)AuthorAgeFilesLines
* gh-141909: Correct version where Py_mod_gil was added (GH-141979)Petr Viktorin2025-11-261-1/+1
|
* gh-140550: PEP 793 reference documentation (GH-141197)Petr Viktorin2025-11-261-0/+19
| | | | | | | | | | | * gh-140550: PEP 793 reference documentation Since the PEP calls for soft-deprecation of the existing initialization function, this reorganizes the relevant docs to put the new way of doing things first, and de-emphasize the old. Some bits, like the tutorial, are left out of this patch. (See the issue for a list.)
* gh-141909: Add `PyModuleDef_Slot` and earlier Py_mod_* constants to stable ↵Petr Viktorin2025-11-251-0/+5
| | | | | | | | ABI manifest (#141910) These were added to the limited API in 3.5. Not including them in `Misc/stable_abi.toml` was a bug.
* gh-139165: Make Py_SIZE, Py_IS_TYPE,Py_ SET_SIZE regular functions in stable ↵Petr Viktorin2025-11-251-0/+3
| | | | | | | | | | | | ABI (GH-139166) * Make Py_{SIZE,IS_TYPE,SET_SIZE} regular functions in stable ABI Group them together with Py_TYPE & Py_SET_TYPE to cut down on repetitive preprocessor macros. Format repetitive definitions in object.c more concisely. Py_SET_TYPE is still left out of the Limited API.
* gh-141726: Add PyDict_SetDefaultRef() to the Stable ABI (#141727)da-woods2025-11-191-0/+1
| | | Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* gh-140550: Run make regen-limited-abi (#141056)Victor Stinner2025-11-051-0/+8
|
* gh-140550: Initial implementation of PEP 793 – PyModExport (GH-140556)Petr Viktorin2025-11-051-0/+6
| | | | Co-authored-by: Victor Stinner <vstinner@python.org> Co-authored-by: Kumar Aditya <kumaraditya@python.org>
* gh-138189: Document type slots, and other constants, as part of Limited API ↵Petr Viktorin2025-11-041-0/+153
| | | | | (GH-138190) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* Document that `PyInterpreterState_GetDict` returns a borrowed reference ↵Petr Viktorin2025-10-011-0/+3
| | | | (#139451)
* gh-133644: remove `PyWeakref_GetObject` and `PyWeakref_GET_OBJECT` (GH-133657)Bénédikt Tran2025-09-242-7/+0
|
* gh-138886: Remove deprecated `PySys_ResetWarnOptions` C-API function (#138887)sobolevn2025-09-151-1/+0
|
* gh-137210: Add a struct, slot & function for checking an extension's ABI ↵Petr Viktorin2025-09-051-0/+3
| | | | | (GH-137212) Co-authored-by: Steve Dower <steve.dower@microsoft.com>
* gh-135755: Docs: C API: Document missing `PyFunction_GET*` macros (GH-135762)Peter Bierma2025-06-251-0/+24
| | | | Co-authored-by: Brian Schubert <brianm.schubert@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* Document that PyType_GetModuleByDef returns a borrowed reference (GH-135666)Petr Viktorin2025-06-191-0/+4
|
* gh-134160: Split extension module init from PyModule docs; emphasize ↵Petr Viktorin2025-06-131-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | multi-phase init (GH-135126) Document behaviour of single-phase init. Call it "legacy". Reorganize PyModule docs. Move PyInit_modulename docs from the tutorial to reference documentation. Move PyMODINIT_FUNC docs from generic macros to the new page. Add doc stubs for `PYTHON_API_VERSION` & `PYTHON_ABI_VERSION` Remove incorrect refcounts.dat entry for `PyModuleDef_Init`. This removes the "Return value: Borrowed reference." note. Instead, note that the function sometimes returns a borrowed reference, sometimes as strong one. (IMO, it's best to not think of `PyModuleDef` as a `PyObject` at all, and act like it can't be reference-counted.) Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* gh-108512: Add and use new replacements for PySys_GetObject() (GH-111035)Serhiy Storchaka2025-05-281-0/+4
| | | | | Add functions PySys_GetAttr(), PySys_GetAttrString(), PySys_GetOptionalAttr() and PySys_GetOptionalAttrString().
* gh-133610: Remove PyUnicode_AsDecoded/Encoded functions (#133612)Stan Ulbrych2025-05-091-4/+0
|
* gh-46236: Document PyUnicode_BuildEncodingMap (#133270)Stan Ulbrych2025-05-091-0/+3
|
* gh-133644: Remove deprecated Python initialization getter functions (#133661)Bénédikt Tran2025-05-092-16/+0
| | | | | | | | | | Remove functions: * Py_GetExecPrefix() * Py_GetPath() * Py_GetPrefix() * Py_GetProgramFullPath() * Py_GetProgramName() * Py_GetPythonHome()
* gh-133644: remove deprecated `PyImport_ImportModuleNoBlock` (#133655)Bénédikt Tran2025-05-082-4/+0
|
* gh-46236: Add PyUnicode_Resize() doc (#132628)RUANG (James Roy)2025-04-221-0/+4
| | | Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
* gh-132639: Adds PyLong_AsNativeBytes, PyLong_FromNativeBytes and ↵Steve Dower2025-04-211-0/+3
| | | | PyLong_FromUnsignedNativeBytes to the limited API (GH-132640)
* gh-46236: Add missing PyUnicode_FromOrdinal() doc (#132040)RUANG (James Roy)2025-04-141-0/+3
|
* gh-130947: Add again PySequence_Fast() to the limited C API (#130948)Victor Stinner2025-03-131-0/+1
| | | | | Add again PySequence_Fast() to the limited C API. Add unit tests.
* gh-46236: Add missing PyUnicode_Append() doc (#130531)RUANG (James Roy)2025-03-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add missing PyUnicode_Append() doc * Change the copied content * Add '`` ``' * Change doc * Add PyUnicode_AppendAndDel function doc * Change doc * Add PyUnicode_AppendAndDel to refcounts * Change doc * Change doc Co-authored-by: Petr Viktorin <encukou@gmail.com> * Change doc --------- Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-46236: Add docs for PyUnicode_GetDefaultEncoding() doc (GH-130335)RUANG (James Roy)2025-02-241-0/+3
| | | | | | | * Clarify sys.getdefaultencoding() documentation * Add missing documentation for PyUnicode_GetDefaultEncoding, the C equivalent of sys.getdefaultencoding
* gh-46236: Document PyUnicode_RSplit, PyUnicode_Partition and ↵Marc Mueller2025-02-201-3/+16
| | | | | PyUnicode_RPartition (#130191) Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-46236: Document `PyUnicode_DecodeCodePageStateful` (GH-127934)Yuki Kobayashi2025-02-101-0/+7
| | | | Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
* gh-91417: Remove PySequence_Fast() from the limited C API (#129398)Victor Stinner2025-02-021-1/+0
| | | | The function never worked with the limited C API. It was added by mistake.
* gh-128911: Add PyImport_ImportModuleAttr() function (#128912)Victor Stinner2025-01-301-0/+8
| | | | | | | | | | | Add PyImport_ImportModuleAttr() and PyImport_ImportModuleAttrString() functions. * Add unit tests. * Replace _PyImport_GetModuleAttr() with PyImport_ImportModuleAttr(). * Replace _PyImport_GetModuleAttrString() with PyImport_ImportModuleAttrString(). * Remove "pycore_import.h" includes, no longer needed.
* gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630)Petr Viktorin2025-01-091-0/+2
|
* gh-102471, PEP 757: Add PyLong import and export API (#121339)Victor Stinner2024-12-131-0/+7
| | | | | Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com> Co-authored-by: Steve Dower <steve.dower@microsoft.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
* Document PyObject_SelfIter (#127861)Miro Hrončok2024-12-131-0/+3
|
* gh-127443: Fix some entries in `Doc/data/refcounts.dat` (#127451)Bénédikt Tran2024-12-021-19/+21
| | | Fix incorrect entries in `Doc/data/refcounts.dat`
* gh-126061: add new functions to `refcounts.dat` (#126788)RUANG (James Roy)2024-11-141-0/+13
|
* gh-121654: Add PyType_Freeze() function (#122457)Victor Stinner2024-10-251-0/+1
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-124502: Add PyUnicode_Equal() function (#124504)Victor Stinner2024-10-071-0/+1
|
* gh-124127: Make Py_REFCNT() opaque in limited C API 3.14 (#124128)Victor Stinner2024-09-241-0/+1
|
* gh-124153: Implement `PyType_GetBaseByToken()` and `Py_tp_token` slot ↵neonene2024-09-181-0/+1
| | | | (GH-124163)
* gh-120389: Add PyLong_FromInt64() and PyLong_AsInt64() (#120390)Victor Stinner2024-08-281-0/+8
| | | | | | | | | | | | Add new functions to convert C <stdint.h> numbers from/to Python int: * PyLong_FromInt32() * PyLong_FromUInt32() * PyLong_FromInt64() * PyLong_FromUInt64() * PyLong_AsInt32() * PyLong_AsUInt32() * PyLong_AsInt64() * PyLong_AsUInt64()
* gh-105201: Add PyIter_NextItem() (#122331)Erlend E. Aasland2024-08-072-0/+5
| | | | | | | | | Return -1 and set an exception on error; return 0 if the iterator is exhausted, and return 1 if the next item was fetched successfully. Prefer this API to PyIter_Next(), which requires the caller to use PyErr_Occurred() to differentiate between iterator exhaustion and errors. Co-authered-by: Irit Katriel <iritkatriel@yahoo.com>
* gh-122555: Remove removed functions from `Doc/data/refcounts.dat` (#122556)Bénédikt Tran2024-08-011-10/+0
|
* GH-121970: Rewrite the C-API annotations extension (#121985)Adam Turner2024-07-191-850/+850
| | | Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-119521: Rename IncompleteInputError to _IncompleteInputError and remove ↵Pablo Galindo Salgado2024-06-241-1/+0
| | | | | | | from public API/ABI (GH-119680) Signed-off-by: Pablo Galindo <pablogsal@gmail.com> Co-authored-by: Petr Viktorin <encukou@gmail.com>
* gh-120600: Make Py_TYPE() opaque in limited C API 3.14 (#120601)Victor Stinner2024-06-181-0/+1
| | | | In the limited C API 3.14 and newer, Py_TYPE() is now implemented as an opaque function call to hide implementation details.
* gh-74929: PEP 667 C API documentation (gh-119379)Alyssa Coghlan2024-06-011-0/+32
| | | | | | | | * Add docs for new APIs * Add soft-deprecation notices * Add What's New porting entries * Update comments referencing `PyFrame_LocalsToFast()` to mention the proxy instead * Other related cleanups found when looking for refs to the deprecated APIs
* gh-74929: Implement PEP 667 (GH-115153)Tian Gao2024-05-041-0/+3
|
* gh-117987: Restore several functions removed in Python 3.13 alpha 1 (GH-117993)Victor Stinner2024-04-181-0/+4
| | | | | | | | | Restore these functions removed in Python 3.13 alpha 1: * Py_SetPythonHome() * Py_SetProgramName() * PySys_SetArgvEx() * PySys_SetArgv()
* gh-117929: Restore removed PyEval_InitThreads() function (#117931)Victor Stinner2024-04-171-0/+1
|
* gh-116936: Add PyType_GetModuleByDef() to the limited C API (#116937)Victor Stinner2024-03-251-0/+1
|