Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-11-19 09:50:51

0001 #ifndef Py_INTERNAL_TUPLE_H
0002 #define Py_INTERNAL_TUPLE_H
0003 #ifdef __cplusplus
0004 extern "C" {
0005 #endif
0006 
0007 #ifndef Py_BUILD_CORE
0008 #  error "this header requires Py_BUILD_CORE define"
0009 #endif
0010 
0011 extern void _PyTuple_MaybeUntrack(PyObject *);
0012 extern void _PyTuple_DebugMallocStats(FILE *out);
0013 
0014 /* runtime lifecycle */
0015 
0016 extern PyStatus _PyTuple_InitGlobalObjects(PyInterpreterState *);
0017 
0018 
0019 /* other API */
0020 
0021 #define _PyTuple_ITEMS(op) _Py_RVALUE(_PyTuple_CAST(op)->ob_item)
0022 
0023 extern PyObject *_PyTuple_FromArray(PyObject *const *, Py_ssize_t);
0024 PyAPI_FUNC(PyObject *)_PyTuple_FromArraySteal(PyObject *const *, Py_ssize_t);
0025 
0026 typedef struct {
0027     PyObject_HEAD
0028     Py_ssize_t it_index;
0029     PyTupleObject *it_seq; /* Set to NULL when iterator is exhausted */
0030 } _PyTupleIterObject;
0031 
0032 #ifdef __cplusplus
0033 }
0034 #endif
0035 #endif   /* !Py_INTERNAL_TUPLE_H */