#include "Python.h"
#include "pycore_call.h"
#include "pycore_long.h"
#include "pycore_modsupport.h"
#include "pycore_object.h"
#include "clinic/enumobject.c.h"
enumobject;
static PyObject *
enum_new_impl(PyTypeObject *type, PyObject *iterable, PyObject *start)
{ … }
static int check_keyword(PyObject *kwnames, int index,
const char *name)
{ … }
static PyObject *
enumerate_vectorcall(PyObject *type, PyObject *const *args,
size_t nargsf, PyObject *kwnames)
{ … }
static void
enum_dealloc(enumobject *en)
{ … }
static int
enum_traverse(enumobject *en, visitproc visit, void *arg)
{ … }
static PyObject *
enum_next_long(enumobject *en, PyObject* next_item)
{ … }
static PyObject *
enum_next(enumobject *en)
{ … }
static PyObject *
enum_reduce(enumobject *en, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
static PyMethodDef enum_methods[] = …;
PyTypeObject PyEnum_Type = …;
reversedobject;
static PyObject *
reversed_new_impl(PyTypeObject *type, PyObject *seq)
{ … }
static PyObject *
reversed_vectorcall(PyObject *type, PyObject * const*args,
size_t nargsf, PyObject *kwnames)
{ … }
static void
reversed_dealloc(reversedobject *ro)
{ … }
static int
reversed_traverse(reversedobject *ro, visitproc visit, void *arg)
{ … }
static PyObject *
reversed_next(reversedobject *ro)
{ … }
static PyObject *
reversed_len(reversedobject *ro, PyObject *Py_UNUSED(ignored))
{ … }
PyDoc_STRVAR(length_hint_doc, "Private method returning an estimate of len(list(it)).");
static PyObject *
reversed_reduce(reversedobject *ro, PyObject *Py_UNUSED(ignored))
{ … }
static PyObject *
reversed_setstate(reversedobject *ro, PyObject *state)
{ … }
PyDoc_STRVAR(setstate_doc, "Set state information for unpickling.");
static PyMethodDef reversediter_methods[] = …;
PyTypeObject PyReversed_Type = …;