$68 GRAYBYTE WORDPRESS FILE MANAGER $48

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.15.130 | ADMIN IP 216.73.216.174
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python312/include/python3.12/internal/

HOME
Current File : /opt/alt/python312/include/python3.12/internal//pycore_typeobject.h
#ifndef Py_INTERNAL_TYPEOBJECT_H
#define Py_INTERNAL_TYPEOBJECT_H
#ifdef __cplusplus
extern "C" {
#endif

#include "pycore_moduleobject.h"

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif


/* state */

#define _Py_TYPE_BASE_VERSION_TAG (2<<16)
#define _Py_MAX_GLOBAL_TYPE_VERSION_TAG (_Py_TYPE_BASE_VERSION_TAG - 1)

struct _types_runtime_state {
    /* Used to set PyTypeObject.tp_version_tag for core static types. */
    // bpo-42745: next_version_tag remains shared by all interpreters
    // because of static types.
    unsigned int next_version_tag;
};


// Type attribute lookup cache: speed up attribute and method lookups,
// see _PyType_Lookup().
struct type_cache_entry {
    unsigned int version;  // initialized from type->tp_version_tag
    PyObject *name;        // reference to exactly a str or None
    PyObject *value;       // borrowed reference or NULL
};

#define MCACHE_SIZE_EXP 12

struct type_cache {
    struct type_cache_entry hashtable[1 << MCACHE_SIZE_EXP];
};

/* For now we hard-code this to a value for which we are confident
   all the static builtin types will fit (for all builds). */
#define _Py_MAX_STATIC_BUILTIN_TYPES 200

typedef struct {
    PyTypeObject *type;
    int readying;
    int ready;
    // XXX tp_dict can probably be statically allocated,
    // instead of dynamically and stored on the interpreter.
    PyObject *tp_dict;
    PyObject *tp_subclasses;
    /* We never clean up weakrefs for static builtin types since
       they will effectively never get triggered.  However, there
       are also some diagnostic uses for the list of weakrefs,
       so we still keep it. */
    PyObject *tp_weaklist;
} static_builtin_state;

struct types_state {
    /* Used to set PyTypeObject.tp_version_tag.
       It starts at _Py_MAX_GLOBAL_TYPE_VERSION_TAG + 1,
       where all those lower numbers are used for core static types. */
    unsigned int next_version_tag;

    struct type_cache type_cache;
    size_t num_builtins_initialized;
    static_builtin_state builtins[_Py_MAX_STATIC_BUILTIN_TYPES];
};


/* runtime lifecycle */

extern PyStatus _PyTypes_InitTypes(PyInterpreterState *);
extern void _PyTypes_FiniTypes(PyInterpreterState *);
extern void _PyTypes_Fini(PyInterpreterState *);


/* other API */

/* Length of array of slotdef pointers used to store slots with the
   same __name__.  There should be at most MAX_EQUIV-1 slotdef entries with
   the same __name__, for any __name__. Since that's a static property, it is
   appropriate to declare fixed-size arrays for this. */
#define MAX_EQUIV 10

typedef struct wrapperbase pytype_slotdef;


static inline PyObject **
_PyStaticType_GET_WEAKREFS_LISTPTR(static_builtin_state *state)
{
    assert(state != NULL);
    return &state->tp_weaklist;
}

/* Like PyType_GetModuleState, but skips verification
 * that type is a heap type with an associated module */
static inline void *
_PyType_GetModuleState(PyTypeObject *type)
{
    assert(PyType_Check(type));
    assert(type->tp_flags & Py_TPFLAGS_HEAPTYPE);
    PyHeapTypeObject *et = (PyHeapTypeObject *)type;
    assert(et->ht_module);
    PyModuleObject *mod = (PyModuleObject *)(et->ht_module);
    assert(mod != NULL);
    return mod->md_state;
}


extern int _PyStaticType_InitBuiltin(PyInterpreterState *, PyTypeObject *type);
extern static_builtin_state * _PyStaticType_GetState(PyInterpreterState *, PyTypeObject *);
extern void _PyStaticType_ClearWeakRefs(PyInterpreterState *, PyTypeObject *type);
extern void _PyStaticType_Dealloc(PyInterpreterState *, PyTypeObject *);

PyAPI_FUNC(PyObject *) _PyType_GetDict(PyTypeObject *);
extern PyObject * _PyType_GetBases(PyTypeObject *type);
extern PyObject * _PyType_GetMRO(PyTypeObject *type);
extern PyObject* _PyType_GetSubclasses(PyTypeObject *);
extern int _PyType_HasSubclasses(PyTypeObject *);

// PyType_Ready() must be called if _PyType_IsReady() is false.
// See also the Py_TPFLAGS_READY flag.
static inline int
_PyType_IsReady(PyTypeObject *type)
{
    return _PyType_GetDict(type) != NULL;
}

PyObject *
_Py_type_getattro_impl(PyTypeObject *type, PyObject *name, int *suppress_missing_attribute);
PyObject *
_Py_type_getattro(PyTypeObject *type, PyObject *name);

extern PyObject* _Py_BaseObject_RichCompare(PyObject* self, PyObject* other, int op);

PyObject *_Py_slot_tp_getattro(PyObject *self, PyObject *name);
PyObject *_Py_slot_tp_getattr_hook(PyObject *self, PyObject *name);

PyAPI_DATA(PyTypeObject) _PyBufferWrapper_Type;

PyObject *
_PySuper_Lookup(PyTypeObject *su_type, PyObject *su_obj, PyObject *name, int *meth_found);

extern int _PyType_AddMethod(PyTypeObject *, PyMethodDef *);

#ifdef __cplusplus
}
#endif
#endif /* !Py_INTERNAL_TYPEOBJECT_H */


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
10 Feb 2026 9.37 AM
root / linksafe
0755
pycore_abstract.h
0.597 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_asdl.h
2.964 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_ast.h
30.555 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_ast_state.h
6.591 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_atexit.h
1.122 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_atomic.h
16.581 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_atomic_funcs.h
2.381 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_bitutils.h
5.92 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_blocks_output_buffer.h
8.484 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_bytes_methods.h
3.305 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_bytesobject.h
1.308 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_call.h
3.828 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_ceval.h
5.142 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_ceval_state.h
2.68 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_code.h
15.464 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_compile.h
3.372 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_condvar.h
2.841 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_context.h
1.271 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_descrobject.h
0.487 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_dict.h
6.234 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_dict_state.h
1.069 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_dtoa.h
1.577 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_emscripten_signal.h
0.549 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_exceptions.h
0.822 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_faulthandler.h
2.168 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_fileutils.h
7.725 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_fileutils_windows.h
2.66 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_floatobject.h
1.541 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_flowgraph.h
4.521 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_format.h
0.469 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_frame.h
9.038 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_function.h
0.597 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_gc.h
7.479 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_genobject.h
1.158 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_getopt.h
0.479 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_gil.h
1.528 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_global_objects.h
2.964 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_global_objects_fini_generated.h
112.657 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_global_strings.h
24.842 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_hamt.h
3.654 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_hashtable.h
4.186 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_import.h
6.209 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_initconfig.h
5.572 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_instruments.h
2.928 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_interp.h
8.873 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_intrinsics.h
1.364 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_list.h
1.934 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_long.h
7.622 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_memoryobject.h
0.374 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_moduleobject.h
1.164 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_namespace.h
0.383 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_object.h
14.567 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_object_state.h
0.992 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_obmalloc.h
26.645 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_obmalloc_init.h
2.036 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_opcode.h
19.61 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_opcode_utils.h
2.623 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_parser.h
1.326 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pathconfig.h
0.592 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pyarena.h
2.669 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pyerrors.h
3.037 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pyhash.h
0.692 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pylifecycle.h
3.286 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pymath.h
8.398 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pymem.h
2.969 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pymem_init.h
2.592 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pystate.h
4.865 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_pythread.h
2.026 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_range.h
0.338 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_runtime.h
8.231 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_runtime_init.h
5.773 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_runtime_init_generated.h
44.679 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_signal.h
2.55 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_sliceobject.h
0.404 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_strhex.h
0.915 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_structseq.h
0.901 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_symtable.h
6.87 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_sysmodule.h
0.976 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_time.h
0.379 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_token.h
2.979 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_traceback.h
3.419 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_tracemalloc.h
3.003 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_tuple.h
2.146 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_typeobject.h
4.62 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_typevarobject.h
0.745 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_ucnhash.h
0.877 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_unicodeobject.h
2.595 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_unicodeobject_generated.h
122.574 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_unionobject.h
0.666 KB
9 Oct 2025 11.07 AM
root / linksafe
0644
pycore_warnings.h
0.723 KB
9 Oct 2025 11.07 AM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF