mirror of
https://github.com/python/cpython.git
synced 2026-06-09 19:31:09 +00:00
There are newly documented restrictions on tp_traverse:
The traversal function must not have any side effects.
It must not modify the reference counts of any Python
objects nor create or destroy any Python objects.
* Add several functions that are guaranteed side-effect-free,
with a _DuringGC suffix.
* Use these in ctypes
* Consolidate tp_traverse docs in gcsupport.rst, moving unique
content from typeobj.rst there
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Co-authored-by: Victor Stinner <vstinner@python.org>
|
||
|---|---|---|
| .. | ||
| clinic | ||
| abstract.c | ||
| bytearray.c | ||
| bytes.c | ||
| codec.c | ||
| complex.c | ||
| dict.c | ||
| eval.c | ||
| file.c | ||
| float.c | ||
| heaptype_relative.c | ||
| import.c | ||
| list.c | ||
| long.c | ||
| object.c | ||
| parts.h | ||
| pyos.c | ||
| set.c | ||
| sys.c | ||
| testcapi_long.h | ||
| threadstate.c | ||
| tuple.c | ||
| unicode.c | ||
| util.h | ||
| vectorcall_limited.c | ||
| version.c | ||