#include "Python.h"
#include "pycore_modsupport.h"
#include "pycore_namespace.h"
#include <stddef.h>
_PyNamespaceObject;
static PyMemberDef namespace_members[] = …;
static PyObject *
namespace_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
{ … }
static int
namespace_init(_PyNamespaceObject *ns, PyObject *args, PyObject *kwds)
{ … }
static void
namespace_dealloc(_PyNamespaceObject *ns)
{ … }
static PyObject *
namespace_repr(PyObject *ns)
{ … }
static int
namespace_traverse(_PyNamespaceObject *ns, visitproc visit, void *arg)
{ … }
static int
namespace_clear(_PyNamespaceObject *ns)
{ … }
static PyObject *
namespace_richcompare(PyObject *self, PyObject *other, int op)
{ … }
PyDoc_STRVAR(namespace_reduce__doc__, "Return state information for pickling");
static PyObject *
namespace_reduce(_PyNamespaceObject *ns, PyObject *Py_UNUSED(ignored))
{ … }
static PyObject *
namespace_replace(PyObject *self, PyObject *args, PyObject *kwargs)
{ … }
static PyMethodDef namespace_methods[] = …;
PyDoc_STRVAR(namespace_doc,
"SimpleNamespace(mapping_or_iterable=(), /, **kwargs)\n\
--\n\n\
A simple attribute-based namespace.");
PyTypeObject _PyNamespace_Type = …;
PyObject *
_PyNamespace_New(PyObject *kwds)
{ … }