13 {Py_tp_doc, (
void*)
"Section objects"},
21 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
32 {Py_tp_doc, (
void*)
"Iterate over all Segments of a Section, including x=0 and 1"},
39 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
45 {Py_tp_iter, (
void*) PyObject_SelfIter},
48 (
void*)
"Iterate over nonzero area Segments of a Section (does not include x=0 and 1)"},
55 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
71 {Py_tp_doc, (
void*)
"Segment objects"},
79 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
85 {Py_tp_iter, (
void*) PyObject_SelfIter},
87 {Py_tp_doc, (
void*)
"Iterate over Mechanisms in a Segment of a Section"},
94 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
108 {Py_tp_doc, (
void*)
"Mechanism objects"},
115 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
124 {Py_tp_doc, (
void*)
"Mechanism Function"},
131 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
137 {Py_tp_iter, (
void*) PyObject_SelfIter},
139 {Py_tp_doc, (
void*)
"Iterate over variables in a Mechanism"},
146 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
155 {Py_tp_doc, (
void*)
"Range Variable Array objects"},
165 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
170 {Py_tp_doc, (
void*)
"Opaque pointer."},
177 Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE,
181 static struct PyModuleDef
nrnmodule = {PyModuleDef_HEAD_INIT,
183 "NEURON interaction with Python",
197 "NEURON interaction with Python",
static int NPyMechObj_init_safe(NPyMechObj *self, PyObject *args, PyObject *kwds)
static PyObject * NPyRangeVar_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyObject * NPySegObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyMethodDef NPyMechFunc_methods[]
static void NPySecObj_dealloc(NPySecObj *self)
static PyMethodDef NPySegObj_methods[]
PyObject * NPySecObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
static int NPySecObj_contains_safe(PyObject *sec, PyObject *obj)
static int mech_setattro_safe(NPyMechObj *self, PyObject *pyname, PyObject *value)
static PyObject * pysec_richcmp_safe(NPySecObj *self, PyObject *other, int op)
static int rv_setitem_safe(PyObject *self, Py_ssize_t ix, PyObject *value)
static void NPyMechOfSegIter_dealloc_safe(NPyMechOfSegIter *self)
static PyObject * allseg_of_sec_next_safe(NPyAllSegOfSecIter *self)
static PyObject * rv_getitem_safe(PyObject *self, Py_ssize_t ix)
static int NPySegObj_contains_safe(PyObject *segment, PyObject *obj)
static PyObject * segment_getattro_safe(NPySegObj *self, PyObject *pyname)
static PyObject * NPyMechObj_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyObject * mech_of_segment_iter_safe(NPySegObj *self)
static void NPySegOfSecIter_dealloc_safe(NPySegOfSecIter *self)
static PyObject * pyseg_richcmp_safe(NPySegObj *self, PyObject *other, int op)
static void NPySegObj_dealloc_safe(NPySegObj *self)
static PyMemberDef NPyMechObj_members[]
static PyObject * NPyMechFunc_call_safe(NPyMechFunc *self, PyObject *args)
static void NPyAllSegOfSecIter_dealloc_safe(NPyAllSegOfSecIter *self)
static void NPyMechFunc_dealloc_safe(NPyMechFunc *self)
PyObject * NPyAllSegOfSecIter_new_safe(PyTypeObject *type, PyObject *args, PyObject *kwds)
static PyMethodDef NPyMechObj_methods[]
static int NPySegObj_init(NPySegObj *self, PyObject *, PyObject *)
static PyObject * seg_of_sec_next_safe(NPySegOfSecIter *self)
static PyObject * pymech_repr_safe(PyObject *p)
static PyMethodDef NPySecObj_methods[]
static Py_ssize_t rv_len_safe(PyObject *self)
static PyObject * var_of_mech_next_safe(NPyVarOfMechIter *self)
static PyObject * mech_of_seg_next_safe(NPyMechOfSegIter *self)
static PyMemberDef NPySegObj_members[]
static void NPyVarOfMechIter_dealloc_safe(NPyVarOfMechIter *self)
static PyObject * pysec_repr_safe(PyObject *p)
static PyObject * NPySecObj_call_safe(NPySecObj *self, PyObject *args)
static long pysec_hash_safe(PyObject *self)
static PyObject * section_getattro_safe(NPySecObj *self, PyObject *pyname)
static int NPySecObj_init_safe(NPySecObj *self, PyObject *args, PyObject *kwds)
static PyObject * mech_getattro_safe(NPyMechObj *self, PyObject *pyname)
static PyObject * var_of_mech_iter_safe(NPyMechObj *self)
static PyMethodDef nrnpy_methods[]
static long pyseg_hash_safe(PyObject *self)
static PyObject * pymechfunc_repr_safe(PyObject *p)
static PyObject * allseg_of_sec_iter_safe(NPyAllSegOfSecIter *self)
static PyObject * seg_of_section_iter_safe(NPySecObj *self)
static PyObject * pyseg_repr_safe(PyObject *p)
static void NPyMechObj_dealloc_safe(NPyMechObj *self)
static int section_setattro_safe(NPySecObj *self, PyObject *pyname, PyObject *value)
static int NPyAllSegOfSecIter_init_safe(NPyAllSegOfSecIter *self, PyObject *args, PyObject *kwds)
static int segment_setattro_safe(NPySegObj *self, PyObject *pyname, PyObject *value)
static int NPyRangeVar_init_safe(NPyRangeVar *self, PyObject *args, PyObject *kwds)
static PyMethodDef NPyRangeVar_methods[]
static void NPyRangeVar_dealloc_safe(NPyRangeVar *self)
static PyType_Spec nrnpy_MechOfSegIterType_spec
static PyType_Slot nrnpy_MechOfSegIterType_slots[]
static PyType_Slot nrnpy_SegmentType_slots[]
static PyType_Spec nrnpy_VarOfMechIterType_spec
static PyType_Spec nrnpy_AllSegOfSecIterType_spec
static PyType_Spec nrnpy_SectionType_spec
static PyType_Spec nrnpy_SegOfSecIterType_spec
static PyType_Slot nrnpy_SegOfSecIterType_slots[]
static struct PyModuleDef nrnsectionmodule
static PyType_Slot nrnpy_OpaquePointerType_slots[]
static PyType_Slot nrnpy_MechFuncType_slots[]
static PyType_Slot nrnpy_MechanismType_slots[]
static PyType_Spec nrnpy_MechanismType_spec
static PyType_Spec nrnpy_RangeType_spec
static PyType_Slot nrnpy_AllSegOfSecIterType_slots[]
static struct PyModuleDef nrnmodule
static PyType_Slot nrnpy_RangeType_slots[]
static PyType_Slot nrnpy_VarOfMechIterType_slots[]
static PyType_Spec nrnpy_MechFuncType_spec
static PyType_Slot nrnpy_SectionType_slots[]
static PyType_Spec nrnpy_SegmentType_spec
static PyType_Spec nrnpy_OpaquePointerType_spec