cpython/Objects/cellobject.c

/* Cell object implementation */

#include "Python.h"
#include "pycore_cell.h"          // PyCell_GetRef()
#include "pycore_modsupport.h"    // _PyArg_NoKeywords()
#include "pycore_object.h"

#define _PyCell_CAST(op)

PyObject *
PyCell_New(PyObject *obj)
{}

PyDoc_STRVAR(cell_new_doc,
"cell([contents])\n"
"--\n"
"\n"
"Create a new cell object.\n"
"\n"
"  contents\n"
"    the contents of the cell. If not specified, the cell will be empty,\n"
"    and \n further attempts to access its cell_contents attribute will\n"
"    raise a ValueError.");


static PyObject *
cell_new(PyTypeObject *type, PyObject *args, PyObject *kwargs)
{}

PyObject *
PyCell_Get(PyObject *op)
{}

int
PyCell_Set(PyObject *op, PyObject *value)
{}

static void
cell_dealloc(PyObject *self)
{}

static PyObject *
cell_richcompare(PyObject *a, PyObject *b, int op)
{}

static PyObject *
cell_repr(PyObject *self)
{}

static int
cell_traverse(PyObject *self, visitproc visit, void *arg)
{}

static int
cell_clear(PyObject *self)
{}

static PyObject *
cell_get_contents(PyObject *self, void *closure)
{}

static int
cell_set_contents(PyObject *self, PyObject *obj, void *Py_UNUSED(ignored))
{}

static PyGetSetDef cell_getsetlist[] =;

PyTypeObject PyCell_Type =;