/opt/imh/python3.13/include/python3.13/cpython
NameSizeModeActions
abstract.h33990644editdlrm
bytearrayobject.h11630644editdlrm
bytesobject.h11800644editdlrm
cellobject.h10760644editdlrm
ceval.h11150644editdlrm
classobject.h22450644editdlrm
code.h152070644editdlrm
compile.h21210644editdlrm
complexobject.h9090644editdlrm
context.h18370644editdlrm
critical_section.h55880644editdlrm
descrobject.h15930644editdlrm
dictobject.h38700644editdlrm
fileobject.h6520644editdlrm
fileutils.h2320644editdlrm
floatobject.h9000644editdlrm
frameobject.h11990644editdlrm
funcobject.h70490644editdlrm
genobject.h29970644editdlrm
import.h7250644editdlrm
initconfig.h81970644editdlrm
listobject.h18010644editdlrm
lock.h17630644editdlrm
longintrepr.h51190644editdlrm
longobject.h55830644editdlrm
memoryobject.h22230644editdlrm
methodobject.h22760644editdlrm
modsupport.h10420644editdlrm
monitoring.h77040644editdlrm
object.h190740644editdlrm
objimpl.h38200644editdlrm
odictobject.h13110644editdlrm
picklebufobject.h8480644editdlrm
pthread_stubs.h39260644editdlrm
pyatomic.h165060644editdlrm
pyatomic_gcc.h191310644editdlrm
pyatomic_msc.h292410644editdlrm
pyatomic_std.h243360644editdlrm
pyctype.h13870644editdlrm
pydebug.h14130644editdlrm
pyerrors.h29080644editdlrm
pyfpe.h4440644editdlrm
pyframe.h19470644editdlrm
pyhash.h13820644editdlrm
pylifecycle.h28170644editdlrm
pymem.h28430644editdlrm
pystate.h94650644editdlrm
pystats.h54340644editdlrm
pythonrun.h43270644editdlrm
pythread.h15100644editdlrm
pytime.h7070644editdlrm
setobject.h20460644editdlrm
sysmodule.h7750644editdlrm
traceback.h2820644editdlrm
tracemalloc.h8230644editdlrm
tupleobject.h13290644editdlrm
unicodeobject.h250740644editdlrm
warnings.h6950644editdlrm
weakrefobject.h22490644editdlrm
Edit: /opt/imh/python3.13/include/python3.13/cpython/setobject.h (2046B)
#ifndef Py_CPYTHON_SETOBJECT_H # error "this header file must not be included directly" #endif /* There are three kinds of entries in the table: 1. Unused: key == NULL and hash == 0 2. Dummy: key == dummy and hash == -1 3. Active: key != NULL and key != dummy and hash != -1 The hash field of Unused slots is always zero. The hash field of Dummy slots are set to -1 meaning that dummy entries can be detected by either entry->key==dummy or by entry->hash==-1. */ #define PySet_MINSIZE 8 typedef struct { PyObject *key; Py_hash_t hash; /* Cached hash code of the key */ } setentry; /* The SetObject data structure is shared by set and frozenset objects. Invariant for sets: - hash is -1 Invariants for frozensets: - data is immutable. - hash is the hash of the frozenset or -1 if not computed yet. */ typedef struct { PyObject_HEAD Py_ssize_t fill; /* Number active and dummy entries*/ Py_ssize_t used; /* Number active entries */ /* The table contains mask + 1 slots, and that's a power of 2. * We store the mask instead of the size because the mask is more * frequently needed. */ Py_ssize_t mask; /* The table points to a fixed-size smalltable for small tables * or to additional malloc'ed memory for bigger tables. * The table pointer is never NULL which saves us from repeated * runtime null-tests. */ setentry *table; Py_hash_t hash; /* Only used by frozenset objects */ Py_ssize_t finger; /* Search finger for pop() */ setentry smalltable[PySet_MINSIZE]; PyObject *weakreflist; /* List of weak references */ } PySetObject; #define _PySet_CAST(so) \ (assert(PyAnySet_Check(so)), _Py_CAST(PySetObject*, so)) static inline Py_ssize_t PySet_GET_SIZE(PyObject *so) { #ifdef Py_GIL_DISABLED return _Py_atomic_load_ssize_relaxed(&(_PySet_CAST(so)->used)); #else return _PySet_CAST(so)->used; #endif } #define PySet_GET_SIZE(so) PySet_GET_SIZE(_PyObject_CAST(so))