/opt/alt/python37/include/python3.7m
NameSizeModeActions
internal/-0755rm
abstract.h407980644editdlrm
accu.h10160644editdlrm
asdl.h12130644editdlrm
ast.h6410644editdlrm
bitset.h8100644editdlrm
bltinmodule.h2640644editdlrm
boolobject.h8860644editdlrm
bytearrayobject.h21140644editdlrm
bytesobject.h84930644editdlrm
bytes_methods.h33010644editdlrm
cellobject.h7130644editdlrm
ceval.h87170644editdlrm
classobject.h16790644editdlrm
code.h60650644editdlrm
codecs.h67930644editdlrm
compile.h29460644editdlrm
complexobject.h18070644editdlrm
context.h20140644editdlrm
datetime.h98480644editdlrm
descrobject.h31350644editdlrm
dictobject.h73230644editdlrm
dtoa.h4580644editdlrm
dynamic_annotations.h224690644editdlrm
enumobject.h2530644editdlrm
errcode.h16950644editdlrm
eval.h12090644editdlrm
fileobject.h18110644editdlrm
fileutils.h45340644editdlrm
floatobject.h47940644editdlrm
frameobject.h33180644editdlrm
funcobject.h41780644editdlrm
genobject.h36460644editdlrm
graminit.h19920644editdlrm
grammar.h23190644editdlrm
import.h49770644editdlrm
intrcheck.h8610644editdlrm
iterobject.h5670644editdlrm
listobject.h29270644editdlrm
longintrepr.h37990644editdlrm
longobject.h85940644editdlrm
marshal.h8030644editdlrm
memoryobject.h27650644editdlrm
metagrammar.h2530644editdlrm
methodobject.h45190644editdlrm
modsupport.h85590644editdlrm
moduleobject.h23040644editdlrm
namespaceobject.h3490644editdlrm
node.h11130644editdlrm
object.h418420644editdlrm
objimpl.h144740644editdlrm
odictobject.h12800644editdlrm
opcode.h51090644editdlrm
osdefs.h6910644editdlrm
osmodule.h2910644editdlrm
parsetok.h29050644editdlrm
patchlevel.h12990644editdlrm
pgen.h2530644editdlrm
pgenheaders.h12220644editdlrm
pyarena.h27440644editdlrm
pyatomic.h161210644editdlrm
pycapsule.h17260644editdlrm
pyconfig-64.h453540644editdlrm
pyconfig.h1620644editdlrm
pyctype.h13200644editdlrm
pydebug.h12140644editdlrm
pydtrace.h22850644editdlrm
pyerrors.h173690644editdlrm
pyexpat.h24500644editdlrm
pyfpe.h3410644editdlrm
pyhash.h41390644editdlrm
pylifecycle.h77800644editdlrm
pymacconfig.h29890644editdlrm
pymacro.h35350644editdlrm
pymath.h83120644editdlrm
pymem.h89930644editdlrm
pyport.h282350644editdlrm
pystate.h163240644editdlrm
pystrcmp.h4360644editdlrm
pystrhex.h4950644editdlrm
pystrtod.h14830644editdlrm
Python-ast.h218020644editdlrm
Python.h35540644editdlrm
pythonrun.h62040644editdlrm
pythread.h53320644editdlrm
pytime.h89260644editdlrm
py_curses.h40620644editdlrm
rangeobject.h6290644editdlrm
setobject.h33620644editdlrm
sliceobject.h24800644editdlrm
structmember.h20300644editdlrm
structseq.h13770644editdlrm
symtable.h49280644editdlrm
sysmodule.h15110644editdlrm
token.h24800644editdlrm
traceback.h36440644editdlrm
tupleobject.h24710644editdlrm
typeslots.h22530644editdlrm
ucnhash.h10560644editdlrm
unicodeobject.h822780644editdlrm
warnings.h17760644editdlrm
weakrefobject.h28660644editdlrm
Edit: /opt/alt/python37/include/python3.7m/weakrefobject.h (2866B)
/* Weak references objects for Python. */ #ifndef Py_WEAKREFOBJECT_H #define Py_WEAKREFOBJECT_H #ifdef __cplusplus extern "C" { #endif typedef struct _PyWeakReference PyWeakReference; /* PyWeakReference is the base struct for the Python ReferenceType, ProxyType, * and CallableProxyType. */ #ifndef Py_LIMITED_API struct _PyWeakReference { PyObject_HEAD /* The object to which this is a weak reference, or Py_None if none. * Note that this is a stealth reference: wr_object's refcount is * not incremented to reflect this pointer. */ PyObject *wr_object; /* A callable to invoke when wr_object dies, or NULL if none. */ PyObject *wr_callback; /* A cache for wr_object's hash code. As usual for hashes, this is -1 * if the hash code isn't known yet. */ Py_hash_t hash; /* If wr_object is weakly referenced, wr_object has a doubly-linked NULL- * terminated list of weak references to it. These are the list pointers. * If wr_object goes away, wr_object is set to Py_None, and these pointers * have no meaning then. */ PyWeakReference *wr_prev; PyWeakReference *wr_next; }; #endif PyAPI_DATA(PyTypeObject) _PyWeakref_RefType; PyAPI_DATA(PyTypeObject) _PyWeakref_ProxyType; PyAPI_DATA(PyTypeObject) _PyWeakref_CallableProxyType; #define PyWeakref_CheckRef(op) PyObject_TypeCheck(op, &_PyWeakref_RefType) #define PyWeakref_CheckRefExact(op) \ (Py_TYPE(op) == &_PyWeakref_RefType) #define PyWeakref_CheckProxy(op) \ ((Py_TYPE(op) == &_PyWeakref_ProxyType) || \ (Py_TYPE(op) == &_PyWeakref_CallableProxyType)) #define PyWeakref_Check(op) \ (PyWeakref_CheckRef(op) || PyWeakref_CheckProxy(op)) PyAPI_FUNC(PyObject *) PyWeakref_NewRef(PyObject *ob, PyObject *callback); PyAPI_FUNC(PyObject *) PyWeakref_NewProxy(PyObject *ob, PyObject *callback); PyAPI_FUNC(PyObject *) PyWeakref_GetObject(PyObject *ref); #ifndef Py_LIMITED_API PyAPI_FUNC(Py_ssize_t) _PyWeakref_GetWeakrefCount(PyWeakReference *head); PyAPI_FUNC(void) _PyWeakref_ClearRef(PyWeakReference *self); #endif /* Explanation for the Py_REFCNT() check: when a weakref's target is part of a long chain of deallocations which triggers the trashcan mechanism, clearing the weakrefs can be delayed long after the target's refcount has dropped to zero. In the meantime, code accessing the weakref will be able to "see" the target object even though it is supposed to be unreachable. See issue #16602. */ #define PyWeakref_GET_OBJECT(ref) \ (Py_REFCNT(((PyWeakReference *)(ref))->wr_object) > 0 \ ? ((PyWeakReference *)(ref))->wr_object \ : Py_None) #ifdef __cplusplus } #endif #endif /* !Py_WEAKREFOBJECT_H */