cpython/Doc/c-api
Serhiy Storchaka 69368ebc33
[3.13] gh-158102: Add tests for the slice C API (GH-158120) (GH-158293)
Test PySlice_Check(), PySlice_New(), PySlice_GetIndices(), PySlice_Unpack(),
PySlice_AdjustIndices() and PySlice_GetIndicesEx() -- both the macro and the
deprecated function.

Document the length and step precondition of PySlice_AdjustIndices()
(cherry picked from commit 8c056c33aa)

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
2026-09-29 15:38:46 +03:00
..
abstract.rst gh-85275: Remove old buffer APIs (#105137) 2023-06-02 01:12:40 +00:00
allocation.rst [3.13] Add a new Sphinx soft-deprecated directive (GH-148630) (#148715) 2026-06-14 19:08:04 +03:00
apiabiversion.rst
arg.rst [3.13] gh-74366: Fix the documentation of "$" in PyArg_ParseTupleAndKeywords() (GH-155301) (GH-155310) 2026-08-07 07:36:09 +03:00
bool.rst gh-110481, doc: Add "immortal" term to the glossary (#112180) 2023-11-17 15:09:19 +01:00
buffer.rst [3.13] gh-141004: Document PyBUF_WRITEABLE (GH-141255) (GH-141260) 2025-11-08 17:37:04 +00:00
bytearray.rst [3.13] gh-156939: Document that PyBytesObject ends with a NUL byte (GH-157236) (#157552) 2026-09-15 14:53:11 +02:00
bytes.rst [3.13] gh-156939: Document that PyBytesObject ends with a NUL byte (GH-157236) (#157552) 2026-09-15 14:53:11 +02:00
call.rst [3.13] gh-141004: Document old provisional names for vectorcall/code API (GH-143568) (GH-143829) 2026-01-14 11:01:54 +01:00
capsule.rst [3.13] gh-141004: Document PyCapsule_Type (GH-141079) (GH-141198) 2025-11-07 14:16:14 +00:00
cell.rst [3.13] Fix minor typos and wording in C API docs (GH-140955) (#140967) 2025-11-04 09:46:18 +02:00
code.rst [3.13] gh-141004: Document old provisional names for vectorcall/code API (GH-143568) (GH-143829) 2026-01-14 11:01:54 +01:00
codec.rst [3.13] gh-141004: Document Py_hexdigits (GH-141059) (GH-141139) 2025-11-06 13:56:14 +00:00
complex.rst [3.13] gh-121834: Improve complex C-API docs (GH-121835) (#121895) 2024-07-17 07:25:07 +00:00
concrete.rst [3.13] gh-141004: Document the PyPickleBuffer_* C API (GH-141630) (GH-141633) 2025-11-16 18:58:19 +00:00
contextvars.rst gh-115664: Fix ordering of more versionadded and versionchanged directives (GH-116298) 2024-03-07 10:05:03 +02:00
conversion.rst [3.13] gh-141004: Mark up constants for PyOS_double_to_string (GH-143867) (GH-144147) 2026-01-22 13:30:31 +01:00
coro.rst bpo-42528: Improve the docs of most Py*_Check{,Exact} API calls (GH-23602) 2021-01-06 12:38:26 +01:00
curses.rst [3.13] gh-141004: document curses C API (GH-141254) (#141293) 2025-11-09 15:50:46 +00:00
datetime.rst [3.13] gh-141004: Document missing PyDateTime* APIs (GH-141543) (GH-141792) 2025-11-20 13:55:17 +00:00
descriptor.rst [3.13] Docs: fill in descriptor C API docs (GH-146644) (GH-153759) 2026-07-15 14:30:54 +03:00
dict.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
exceptions.rst [3.13] gh-105812: Make use of the Sphinx deco role in documentation (GH-139598) (#154983) 2026-07-31 09:31:44 +00:00
file.rst [3.13] gh-146056: Fix repr() for lists containing NULLs (GH-146129) (GH-146155) (GH-146271) 2026-03-22 08:06:17 +00:00
float.rst [3.13] Fix typos and grammar errors across documentation (GH-144709) (#144804) 2026-02-17 12:56:29 +00:00
frame.rst [3.13] gh-152105: Remove docs snippet that uses internal C API (GH-155122) (GH-155240) 2026-08-06 13:32:57 +02:00
function.rst [3.13] gh-141004: Document PyFunction_SetKwDefaults (GH-141294) (GH-141305) 2025-11-09 17:55:02 +00:00
gcsupport.rst [3.13] gh-123241: Document restrictions for tp_traverse implementations (gh-142272) (#142422) 2025-12-08 17:28:21 +00:00
gen.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
hash.rst [3.13] gh-141004: correctly document Py_HASH_* and PyHASH_* as hash_info attributes (GH-141233) (#141235) 2025-11-08 12:29:55 +00:00
import.rst [3.13] gh-141004: Document PyImport_Inittab (GH-141844) (GH-142016) 2025-11-27 14:20:58 -05:00
index.rst
init.rst [3.13] Fix typos and grammar errors across documentation (GH-144709) (#144804) 2026-02-17 12:56:29 +00:00
init_config.rst [3.13] gh-151941: Fix Sphinx reference warnings in Doc/c-api/ (GH-152044) (GH-154922) 2026-07-30 09:12:54 -04:00
intro.rst [3.13] gh-151941: Fix Sphinx reference warnings in Doc/c-api/ (GH-152044) (GH-154922) 2026-07-30 09:12:54 -04:00
iter.rst More minor fixes to C API docs (GH-31525) 2022-04-02 12:31:05 -07:00
iterator.rst [3.13] gh-141004: Document PyODict* APIs (GH-141136) (GH-141678) 2025-11-17 19:47:04 +00:00
list.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
long.rst [3.13] Add a new Sphinx soft-deprecated directive (GH-148630) (#148715) 2026-06-14 19:08:04 +03:00
mapping.rst [3.13] Fix minor typos and wording in C API docs (GH-140955) (#140967) 2025-11-04 09:46:18 +02:00
marshal.rst [3.13] Fix minor typos and wording in C API docs (GH-140955) (#140967) 2025-11-04 09:46:18 +02:00
memory.rst [3.13] Docs: Fix typos in the "Memory Management" section (GH-151243) 2026-06-10 13:20:03 +00:00
memoryview.rst [3.13] gh-141004: Document PyMemoryView_Type (GH-141034) (GH-141055) 2025-11-05 16:51:31 +00:00
method.rst gh-107091: Fix the use of some C domain roles (#107092) 2023-07-23 12:27:05 +02:00
module.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
monitoring.rst [3.13] Add a new Sphinx soft-deprecated directive (GH-148630) (#148715) 2026-06-14 19:08:04 +03:00
none.rst
number.rst [3.13] gh-121905: Consistently use "floating-point" instead of "floating point" (GH-121907) (GH-122012) 2024-07-19 09:13:08 +00:00
object.rst [3.13] gh-146056: Fix repr() for lists containing NULLs (GH-146129) (GH-146155) (GH-146271) 2026-03-22 08:06:17 +00:00
objimpl.rst
perfmaps.rst [3.13] gh-141004: Document unstable perf map functions in ceval.h (GH-143492) (GH-153996) 2026-07-18 15:06:02 +00:00
picklebuffer.rst [3.13] gh-141004: Document the PyPickleBuffer_* C API (GH-141630) (GH-141633) 2025-11-16 18:58:19 +00:00
refcounting.rst [3.13] Docs: Fix markups for emphasis (GH-135598) (GH-135686) 2025-06-18 17:44:43 +00:00
reflection.rst [3.13] gh-118934: Fix PyEval_GetLocals docs (PEP 667) (GH-119934) 2024-06-02 05:57:17 +00:00
sequence.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
set.rst [3.13] gh-101100: Fix references to the set methods (GH-141857) (GH-142345) 2025-12-08 09:50:43 +02:00
slice.rst [3.13] gh-158102: Add tests for the slice C API (GH-158120) (GH-158293) 2026-09-29 15:38:46 +03:00
stable.rst [3.13] gh-127253: Note that Stable ABI is about ABI stability (GH-127254) (GH-127557) 2024-12-03 13:57:42 +01:00
structures.rst [3.13] gh-105812: Make use of the Sphinx deco role in documentation (GH-139598) (#154983) 2026-07-31 09:31:44 +00:00
sys.rst [3.13] gh-141004: Document PyOS_InterruptOccurred (GH-141526) (GH-141550) 2025-11-14 15:58:19 +00:00
time.rst [3.13] GH-109975: Copyedit 3.13 What's New: C API (GH-124313) (#124334) 2024-09-23 11:14:13 -07:00
tuple.rst [3.13] gh-144473: Add "steal" term to glossary; clarify "stealing" onerror (GH-144502) (GH-152772) (GH-152779) 2026-07-02 10:07:33 +02:00
type.rst [3.13] Docs: Fix incomplete sentence in tp_itemsize documentation (GH-152381) (GH-152423) 2026-07-01 13:52:33 +02:00
typehints.rst [3.13] gh-150319: Replace all documentation which says "See PEP 585" (#150325) (#150814) 2026-06-02 22:26:33 +00:00
typeobj.rst [3.13] gh-101100: Fix Sphinx warnings in 'Buffer Object Structures' documentation (GH-151058) (#151071) 2026-06-09 22:21:51 +02:00
unicode.rst [3.13] Fix minor typos in unicode.rst (GH-149587) (#150163) 2026-05-20 15:37:06 +00:00
utilities.rst gh-110850: Add PyTime_t C API (GH-115215) 2024-02-12 18:13:10 +01:00
veryhigh.rst [3.13] gh-141004: Document remaining PyCF_* compiler flag macros (GH-153958) (GH-153986) 2026-07-18 14:49:16 +00:00
weakref.rst [3.13] gh-80384: Fix docs for PyWeakref_NewRef() and PyWeakref_NewProxy() (GH-151146) (GH-151233) 2026-06-10 10:48:23 +00:00