cpython/Include/internal
Victor Stinner 8ee07dda13
bpo-46417: Add _PyType_GetSubclasses() function (GH-30761)
Add a new _PyType_GetSubclasses() function to get type's subclasses.

_PyType_GetSubclasses(type) returns a list which holds strong
refererences to subclasses. It is safer than iterating on
type->tp_subclasses which yields weak references and can be modified
in the loop.

_PyType_GetSubclasses(type) now holds a reference to the tp_subclasses
dict while creating the list of subclasses.

set_collection_flag_recursive() of _abc.c now uses
_PyType_GetSubclasses().
2022-01-21 23:29:10 +01:00
..
pycore_abstract.h bpo-45636: Simplify BINARY_OP (GH-29565) 2021-11-16 05:53:57 -08:00
pycore_accu.h
pycore_asdl.h bpo-45476: Disallow using asdl_seq_GET() as l-value (GH-29866) 2021-11-30 15:13:55 +01:00
pycore_ast.h bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
pycore_ast_state.h bpo-45292: [PEP-654] add except* (GH-29581) 2021-12-14 16:48:15 +00:00
pycore_atomic.h
pycore_atomic_funcs.h
pycore_bitutils.h
pycore_blocks_output_buffer.h
pycore_bytes_methods.h
pycore_bytesobject.h bpo-45953: Statically allocate and initialize global bytes objects. (gh-30096) 2022-01-11 09:37:24 -07:00
pycore_call.h bpo-45439: Move _PyObject_VectorcallTstate() to pycore_call.h (GH-28893) 2021-10-14 21:53:04 +02:00
pycore_ceval.h bpo-45953: Statically initialize all the PyThreadState fields we can. (gh-30590) 2022-01-13 17:09:24 -07:00
pycore_code.h bpo-46072: Add top level stats struct (GH-30169) 2021-12-17 14:48:01 +00:00
pycore_compile.h
pycore_condvar.h bpo-46315: Add ifdef HAVE_ feature checks for WASI compatibility (GH-30507) 2022-01-13 09:46:04 +01:00
pycore_context.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_dict.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_dtoa.h
pycore_exceptions.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_fileutils.h bpo-46362: Ensure ntpath.abspath() uses the Windows API correctly (GH-30571) 2022-01-13 23:35:42 +00:00
pycore_floatobject.h bpo-46417: Finalize structseq types at exit (GH-30645) 2022-01-21 01:42:25 +01:00
pycore_format.h
pycore_frame.h bpo-46409: Make generators in bytecode (GH-30633) 2022-01-20 11:46:39 +00:00
pycore_function.h bpo-44525: Copy free variables in bytecode to allow calls to inner functions to be specialized (GH-29595) 2021-11-23 09:53:24 +00:00
pycore_gc.h bpo-45953: Statically initialize all the non-object PyInterpreterState fields we can. (gh-30589) 2022-01-13 17:17:28 -07:00
pycore_genobject.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_getopt.h
pycore_gil.h
pycore_global_objects.h bpo-46370: Move the static initializer for _PyRuntime to its own header file. (gh-30587) 2022-01-13 15:54:36 -07:00
pycore_hamt.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_hashtable.h
pycore_import.h bpo-45395: Make custom frozen modules additions instead of replacements. (gh-28778) 2021-10-28 15:04:33 -06:00
pycore_initconfig.h bpo-45582 Fix prototype of _Py_Get_Getpath_CodeObject. (GH-29907) 2021-12-03 15:21:58 -08:00
pycore_interp.h bpo-45953: Statically allocate the main interpreter (and initial thread state). (gh-29883) 2022-01-12 16:28:46 -07:00
pycore_interpreteridobject.h bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969) 2021-10-15 11:56:34 +02:00
pycore_list.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_long.h bpo-46417: Finalize structseq types at exit (GH-30645) 2022-01-21 01:42:25 +01:00
pycore_moduleobject.h
pycore_namespace.h bpo-45482: Rename namespaceobject.h to pycore_namespace.h (GH-28975) 2021-10-15 15:21:21 +02:00
pycore_object.h bpo-46417: Add _PyType_GetSubclasses() function (GH-30761) 2022-01-21 23:29:10 +01:00
pycore_parser.h
pycore_pathconfig.h bpo-45582: Port getpath[p].c to Python (GH-29041) 2021-12-03 00:08:42 +00:00
pycore_pyarena.h
pycore_pyerrors.h bpo-46417: Finalize structseq types at exit (GH-30645) 2022-01-21 01:42:25 +01:00
pycore_pyhash.h
pycore_pylifecycle.h bpo-46417: Finalize structseq types at exit (GH-30645) 2022-01-21 01:42:25 +01:00
pycore_pymath.h bpo-45440: Remove pymath.c fallbacks (GH-28977) 2021-10-15 19:45:34 +02:00
pycore_pymem.h bpo-35081: Move interpreteridobject.h to Include/internal/ (GH-28969) 2021-10-15 11:56:34 +02:00
pycore_pystate.h bpo-46008: Add _PyInterpreterState_Main(). (gh-29978) 2021-12-07 18:56:06 -07:00
pycore_runtime.h bpo-46370: Move the static initializer for _PyRuntime to its own header file. (gh-30587) 2022-01-13 15:54:36 -07:00
pycore_runtime_init.h bpo-45953: Statically initialize all the non-object PyInterpreterState fields we can. (gh-30589) 2022-01-13 17:17:28 -07:00
pycore_sliceobject.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_strhex.h bpo-45434: Remove pystrhex.h header file (GH-28923) 2021-10-13 15:22:35 +02:00
pycore_structseq.h bpo-46417: _curses uses PyStructSequence_NewType() (GH-30736) 2022-01-21 03:30:20 +01:00
pycore_symtable.h bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) 2021-12-11 21:28:24 +00:00
pycore_sysmodule.h
pycore_traceback.h bpo-45292: [PEP 654] Update traceback display code to work with exception groups (GH-29207) 2021-11-05 09:39:18 +00:00
pycore_tuple.h bpo-46008: Make runtime-global object/type lifecycle functions and state consistent. (gh-29998) 2021-12-09 12:59:26 -07:00
pycore_typeobject.h bpo-46417: Py_Finalize() clears static types (GH-30743) 2022-01-21 13:06:34 +01:00
pycore_ucnhash.h
pycore_unicodeobject.h bpo-46303: Move fileutils.h private functions to internal C API (GH-30484) 2022-01-11 11:56:16 +01:00
pycore_unionobject.h
pycore_warnings.h bpo-35134: Split warnings.h and weakrefobject.h (GH-29042) 2021-10-19 01:31:57 +02:00