cpython/Doc/c-api
Cody Maloney a4832f6b9a
gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (#131118)
The tp_finalize C API doc used PyErr_Fetch() and PyErr_Restore() in
its example code. That API was deprecated in 3.12.

Update to point to the suggested replacement function
PyErr_GetRaisedException() which has a sample usage.
2025-03-19 18:27:55 +01:00
..
abstract.rst
allocation.rst gh-129675: Update documentation for tp_basicsize & tp_itemsize (#129850) 2025-03-11 11:21:18 +01:00
apiabiversion.rst gh-128629: Add Py_PACK_VERSION and Py_PACK_FULL_VERSION (GH-128630) 2025-01-09 11:10:28 +01:00
arg.rst Fix grammar typo in Doc/c-api/arg.rst (#130741) 2025-03-02 10:24:34 +01:00
bool.rst
buffer.rst
bytearray.rst Python 3.14.0a5 2025-02-11 19:16:29 +02:00
bytes.rst
call.rst
capsule.rst
cell.rst
code.rst
codec.rst
complex.rst gh-69639: Add mixed-mode rules for complex arithmetic (C-like) (GH-124829) 2024-11-26 17:57:39 +02:00
concrete.rst
contextvars.rst gh-124872: Replace enter/exit events with "switched" (#125532) 2024-10-16 13:53:21 +02:00
conversion.rst gh-120026: soft deprecate Py_HUGE_VAL macro (#120027) 2024-11-01 22:04:31 +00:00
coro.rst
datetime.rst
descriptor.rst
dict.rst
exceptions.rst GH-130396: Use computed stack limits on linux (GH-130398) 2025-02-25 09:24:48 +00:00
file.rst
float.rst
frame.rst gh-118915: C API: Document frame locals proxies. (#127720) 2024-12-11 17:28:44 +01:00
function.rst gh-130169: Fix broken list markup in Doc/c-api/function.rst (#130174) 2025-02-16 13:55:31 +03:00
gcsupport.rst
gen.rst
hash.rst
import.rst gh-128911: Add PyImport_ImportModuleAttr() function (#128912) 2025-01-30 11:17:29 +00:00
index.rst
init.rst gh-101100: Docs: Fix some typos in the document (#129988) 2025-02-11 13:06:32 +02:00
init_config.rst gh-130940: Modify default behavior of PyConfig.use_system_logger to enable on iOS (#131172) 2025-03-13 14:28:49 +08:00
intro.rst gh-129666: Add C11/C++11 to docs and -pedantic-errors to GCC/clang test_c[pp]ext tests (GH-130692) 2025-03-04 14:10:09 +01:00
iter.rst
iterator.rst
list.rst
long.rst gh-102471: Change PyLongWriter_Discard(NULL) to do nothing (#129339) 2025-01-27 10:51:16 +00:00
mapping.rst
marshal.rst gh-125063: marshal: Add version 5, improve documentation (GH-126829) 2024-11-15 13:48:57 +01:00
memory.rst
memoryview.rst
method.rst
module.rst gh-129405: Fix doc for Py_mod_multiple_interpreters default, and add test (GH-129406) 2025-02-24 14:59:19 +01:00
monitoring.rst gh-118915: Document PY_MONITORING_IS_INSTRUMENTED_EVENT (GH-128026) 2025-03-18 17:34:01 +01:00
none.rst
number.rst
object.rst Python 3.14.0a5 2025-02-11 19:16:29 +02:00
objimpl.rst
perfmaps.rst
refcounting.rst
reflection.rst
sequence.rst gh-127896: Add missing documentation of PySequence_In (GH-127979) 2024-12-16 14:56:04 +01:00
set.rst
slice.rst gh-130214: Document PyEllipsis_Type (GH-130215) 2025-02-17 13:56:33 +01:00
stable.rst gh-127253: Note that Stable ABI is about ABI stability (GH-127254) 2024-12-03 13:30:27 +01:00
structures.rst gh-130711: Document PyBaseObject_Type (GH-130712) 2025-03-03 15:08:05 +01:00
sys.rst Python 3.14.0a4 2025-01-14 13:52:58 +02:00
time.rst
tuple.rst
type.rst gh-129675: Update documentation for tp_basicsize & tp_itemsize (#129850) 2025-03-11 11:21:18 +01:00
typehints.rst
typeobj.rst gh-131117: Update tp_finalize example to use PyErr_GetRaisedException (#131118) 2025-03-19 18:27:55 +01:00
unicode.rst Python 3.14.0a6 2025-03-14 17:05:02 +02:00
utilities.rst
veryhigh.rst gh-118915: C API: Document compiler flag macros (GH-129028) 2025-01-20 17:45:08 +01:00
weakref.rst gh-128008: Add PyWeakref_IsDead() (GH-128009) 2024-12-19 16:17:15 +01:00