MCPcopy Create free account
hub / github.com/pydata/numexpr / NumExpr_new

Function NumExpr_new

numexpr3/numexpr_object.cpp:37–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37static PyObject *
38NumExpr_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
39{
40 NumExprObject *self = (NumExprObject *)type->tp_alloc(type, 0);
41 if (self != NULL) {
42#define INIT_WITH(name, object) \
43 self->name = object; \
44 if (!self->name) { \
45 Py_DECREF(self); \
46 return NULL; \
47 }
48 Py_INCREF(Py_None);
49 self->program = NULL;
50 self->registers = NULL;
51 self->scalar_mem = NULL;
52 self->n_reg = 0;
53 self->n_scalar = 0;
54 self->n_temp = 0;
55 self->program_len = 0;
56 self->scalar_mem_size = 0;
57#undef INIT_WITH
58 }
59 return (PyObject *)self;
60}
61
62static int
63ssize_from_dchar(char c)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…