| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
(GH-114924)
GH-69695: Update ``PyImport_ImportModule`` description (GH-103836)
(cherry picked from commit 9872855a31720f514b84373848b49fca09d66ecd)
Co-authored-by: patenaud <33957588+patenaud@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
|
|
|
|
|
|
|
| |
(GH-114669) (GH-114705)
(cherry picked from commit 97fb2480e4807a34b8197243ad57566ed7769e24)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
| |
(cherry picked from commit 23fb9f0777b054526b3b32f58e60b2a03132bf45)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
| |
(cherry picked from commit 926881dc10ebf77069e02e66eea3e0d3ba500fe5)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 3f62bf32caf04cedb2c59579a0ce835d1e793d4d)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
|
|
|
|
|
| |
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
|
|
|
|
|
|
|
|
| |
(#114378)
gh-101100: Fix sphinx warnings in `Doc/c-api/memory.rst` (GH-114373)
(cherry picked from commit 47133d8d869c94c4d1f340b5481cc3f2cdc7d68b)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
|
|
|
|
| |
(GH-112093) (#114261)
gh-112092: clarify unstable ABI recompilation requirements (GH-112093)
Use different versions in the examples for when extensions do and do not need to be recompiled to make the examples easier to understand.
(cherry picked from commit 68a7b78cd5185cbd9456f42c15ecf872a7c16f44)
Co-authored-by: DerSchinken <53398996+DerSchinken@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
| |
(GH-112557) (GH-114120)
gh-102468: Document `PyCFunction_New*` and `PyCMethod_New` (GH-112557)
(cherry picked from commit a482bc67ee786e60937a547776fcf9528810e1ce)
Co-authored-by: AN Long <aisk@users.noreply.github.com>
Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
|
|
|
|
|
|
|
| |
(GH-110888) (GH-111691)
(cherry picked from commit 9f33ede12710c454643c394421f52d209247272c)
Co-authored-by: lefp <70862148+lefp@users.noreply.github.com>
|
|
|
|
|
|
|
| |
gh-101100: Improve docs on exception attributes (GH-113057)
(cherry picked from commit d05a180350fe20d5fde56c7e525e394a0b282703)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
|
|
|
|
|
| |
(#113031)
(cherry-picked from commit 81a15ea74e)
|
|
|
|
|
|
| |
(#113003)
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
|
|
|
|
|
| |
(#112817)
(cherry-picked from commit e9707d3c3d)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
parameters in slot typedefs table (GH-112742) (GH-112793)
gh-111178: Docs: fix `traverseproc`, `inquiry`, and `destructor` parameters in slot typedefs table (GH-112742)
In the slot typedefs table, the parameter of `destructor`
and the first parameter of `traverseproc` should both be
`PyObject *` rather than `void *`.
Same for `inquiry`.
(cherry picked from commit 00cce0fe495ee820cd3ca5878bdbe3dd65b1be7b)
Co-authored-by: Christopher Chavez <chrischavez@gmx.us>
|
|
|
|
|
| |
* [3.11] gh-101100: Properly document frame object attributes (#112735)
(cherry-picked from commit d109f637c0)
|
|
|
|
|
|
|
| |
Standardize PyUnicode C API parameter names across the documentation.
(cherry picked from commit b31232ddf7f219ca8ff9e8d0401c02eb0b6ffec3)
Co-authored-by: Rune Tynan <runetynan@gmail.com>
|
| |
|
|
|
|
|
|
| |
(GH-110963) (#111220)
Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
C-API docs: Clarify the size of arenas (GH-110895)
Clarify the size of arenas
From 3.10.0 alpha 7, the pymalloc allocator uses arenas with a fixed size of 1
MiB on 64-bit platforms instead of 256 KiB on 32-bit platforms.
(cherry picked from commit f07ca27709855d4637b43bba23384cc795143ee3)
Co-authored-by: Mienxiu <82512658+mienxiu@users.noreply.github.com>
|
|
|
|
|
|
| |
gh-110527: Improve `PySet_Clear` docs (GH-110528)
(cherry picked from commit bfc1cd8145db00df23fbbd2ed95324bb96c0b25b)
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
|
|
|
|
|
|
| |
* Fix wrong indentation in the other dirs.
* Fix more wrong indentation..
(cherry picked from commit 718391f475f2550d99dd794069ca76312f7f6aa6)
|
|
|
|
|
|
| |
(#105345) (#105371) (#109901)
* Add "limited-c-api" and "stable-api" targets
* Rename the "stable-abi-list" target to "limited-api-list"
|
|
|
|
|
|
|
|
|
|
|
| |
gh-107298: Document PyMODINIT_FUNC macro (#109236)
Document PyMODINIT_FUNC macro.
Remove links to PyAPI_FUNC() and PyAPI_DATA() macros since they are
not documented. These macros should only be used to define the Python
C API. They should not be used outside Python code base.
(cherry picked from commit d7a27e527d7e669d2e45cff80ad725978226477c)
|
|
|
|
|
|
|
|
| |
* Express functions which take argument as a C string in terms of
functions which take Python object.
* Use "note" directive for PyMapping_HasKey() and
PyMapping_HasKeyString() notes.
(cherry picked from commit 6f97eeec222f81bd7ae836c149872a40b079e2a6)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#108489)
[3.12] gh-108314: PyDict_GetItemString() mentions UTF-8 (GH-108448)
gh-108314: PyDict_GetItemString() mentions UTF-8
PyDict_GetItemString(), PyDict_SetItemString() and
PyDict_DelItemString() expects a UTF-8 encoding string for the key.
(cherry picked from commit 9a225d7d5b0530ee73fa00d4816897997a9eb733)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
| |
(GH-108258) (#108290)
(cherry picked from commit d7202e4879bf4e7e00a69500ddcb3143864139b4)
|
|
|
|
|
| |
(cherry picked from commit d63972e289e05b0d82e59f32f107312a8b3de7b5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(GH-108076)
(cherry picked from commit f51f0466c07eabc6177c2f64f70c952dada050e8)
|
|
|
|
|
|
| |
gh-107298: Fix C API Buffer documentation (GH-108011)
(cherry picked from commit c2941cba7a986e6158eebb2a0bf33906dcd78616)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
| |
(cherry picked from commit 637f7ff2c60f262659da0334f1cb672bd361f398)
Co-authored-by: Erlend E. Aasland <erlend@python.org>
|
|
|
|
|
| |
PEP 683 (immortal objects) revealed some ways in which the Python documentation has been unnecessarily coupled to the implementation details of reference counts. In the end users should focus on reference ownership, including taking references and releasing them, rather than on how many reference counts an object has.
This change updates the documentation to reflect that perspective.
|
|
|
|
|
|
| |
(GH-107186) (#107454)
[3.11] Fix the documentation for PyCode_New add `qualname` parameter (GH-107186).
(cherry picked from commit f2abeb590dae5918388f91b60b31f040d44218f0)
|
|
|
|
|
|
|
| |
(GH-107418)
(cherry picked from commit f2d07d3289947d10b065b2bb7670c8fb6b6582f2)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
|
|
| |
(GH-107381)
(cherry picked from commit 983305268e2291b0a7835621b81bf40cba7c27f3)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-107377)
Declare the following functions as macros, since they are actually
macros. It avoids a warning on "TYPE" or "macro" argument.
* PyMem_New()
* PyMem_Resize()
* PyModule_AddIntMacro()
* PyModule_AddStringMacro()
* PyObject_GC_New()
* PyObject_GC_NewVar()
* PyObject_New()
* PyObject_NewVar()
(cherry picked from commit 8d61a71f9c81619e34d4a30b625922ebc83c561b)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
|
| |
(cherry picked from commit 391e03fa05b80d17a14ac88d30c974fa2fa00adb)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
|
|
| |
(GH-107371)
(cherry picked from commit 87b39028e5f453a949a1675526c439f6479a04a8)
Co-authored-by: Victor Stinner <vstinner@python.org>
|
|
|
|
|
|
|
|
| |
references (GH-107316) (GH-107333)
Add targets for PyStructSequence_Desc and PyStructSequence_Field members
and macros like Py_EQ.
Fix target for Py_RETURN_RICHCOMPARE.
(cherry picked from commit abec9a1b20b70d8ced401d59fc4f02b331c6568b)
|
|
|
|
| |
Fix also formatting of PyMethodDef members.
(cherry picked from commit d363eb5b0255c055e7b43f5e2c0847f555e1982e)
|
|
|
|
|
| |
(cherry picked from commit 6d5b6e71c87fca7c5c26f5dd8f325087962215cc)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
| |
(cherry picked from commit af61cb9c7837ff3c11da79e3ee1cab3fdd0ba4da)
|
|
|
|
|
|
|
|
|
|
| |
Fix PyVectorcall_Function doc versionadded (GH-107140)
The documentation implies that PyVectorcall_Function() was available in Python 3.8.
This is half-true - it was available under a different name. I think it's clearer to set
the "version added" to 3.9.
(cherry picked from commit 0a9b339363a59be1249189c767ed6f46fd71e1c7)
Co-authored-by: da-woods <dw-git@d-woods.co.uk>
|
|
|
|
|
|
|
| |
utility functions and system calls (#107062) (#107157)
(cherry picked from commit b447e19e720e6781025432a40eb72b1cc93ac944)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
|
|
|
| |
(cherry picked from commit 08a228da05a7aec937b65eea21f4091fa3c6b5cf)
|
| |
|
|
|
|
|
|
|
| |
(#107061)
It includes standard C types, macros and variables like "size_t",
"LONG_MAX" and "errno", and standard environment variables like "PATH"..
(cherry picked from commit f8b7fe2f2647813ae8249675a80e59c117d30fe1)
|
|
|
|
|
| |
(GH-106910) (GH-106957)
(cherry picked from commit 4b9948617f91175783609769aa6160e5b49b9ccc)
|
|
|
|
|
| |
variables (GH-106894) (GH-106955)
(cherry picked from commit d036db728ea3d54509cbad06df74e2d9a31fbec8)
|
|
|
|
|
| |
(GH-106920) (GH-106952)
(cherry picked from commit fcc816dbff7ca66c26f57a506e4d2330fe41d0ff)
|