@@ -284,22 +284,10 @@ static PyObject* PyConduit_Convert_Node_To_Python(Node& node);
284284// ---------------------------------------------------------------------------//
285285static PyObject *
286286PyConduit_DataType_new (PyTypeObject* type,
287- PyObject* args,
288- PyObject* kwds)
287+ PyObject*, // args -- unused
288+ PyObject*) // kwds -- unused
289289{
290- // / TODO: args and kwargs
291-
292- static const char *kwlist[] = {" value" , NULL };
293- PyObject* value = NULL ;
294- if (!PyArg_ParseTupleAndKeywords (args,
295- kwds,
296- " |O" ,
297- const_cast <char **>(kwlist),
298- &value))
299- {
300- return (NULL );
301- }
302-
290+ // `_new` is used to alloc the object, `_init` is effectively the constructor
303291 PyConduit_DataType* self = (PyConduit_DataType*)PyType_GenericAlloc (type,0 );
304292 return ((PyObject*)self);
305293}
@@ -3297,6 +3285,7 @@ PyConduit_Generator_new(PyTypeObject *type,
32973285 PyObject*, // args -- unused
32983286 PyObject*) // kwds -- unused
32993287{
3288+ // `_new` is used to alloc the object, `_init` is effectively the constructor
33003289 PyConduit_Generator *self = (PyConduit_Generator*)PyType_GenericAlloc (type,0 );
33013290
33023291 if (self)
@@ -3591,7 +3580,7 @@ PyConduit_Schema_new(PyTypeObject* type,
35913580 PyObject*, // args -- unused
35923581 PyObject*) // kwds -- unused
35933582{
3594-
3583+ // `_new` is used to alloc the object, `_init` is effectively the constructor
35953584 PyConduit_Schema *self = (PyConduit_Schema*)PyType_GenericAlloc (type,0 );
35963585
35973586 if (self)
@@ -4652,20 +4641,10 @@ static PyTypeObject PyConduit_Schema_TYPE = {
46524641// ---------------------------------------------------------------------------//
46534642static PyObject *
46544643PyConduit_NodeIterator_new (PyTypeObject *type,
4655- PyObject *args,
4656- PyObject *kwds)
4644+ PyObject*, // args -- unused
4645+ PyObject*) // kwds -- unused
46574646{
4658- static const char *kwlist[] = {" value" , NULL };
4659- PyObject* value = NULL ;
4660- if (!PyArg_ParseTupleAndKeywords (args,
4661- kwds,
4662- " |O" ,
4663- const_cast <char **>(kwlist),
4664- &value))
4665- {
4666- return (NULL );
4667- }
4668-
4647+ // `_new` is used to alloc the object, `_init` is effectively the constructor
46694648 PyConduit_DataType *self = (PyConduit_DataType*)PyType_GenericAlloc (type,0 );
46704649 return ((PyObject*)self);
46714650}
@@ -5154,20 +5133,10 @@ PyConduit_Fill_DataArray_From_PyArray(DataArray<T> &conduit_array,
51545133// ---------------------------------------------------------------------------//
51555134static PyObject *
51565135PyConduit_Node_new (PyTypeObject* type,
5157- PyObject* args,
5158- PyObject* kwds)
5136+ PyObject*, // args -- unused
5137+ PyObject*) // kwds -- unused
51595138{
5160- static const char *kwlist[] = {" value" , NULL };
5161- PyObject* value = NULL ;
5162- if (!PyArg_ParseTupleAndKeywords (args,
5163- kwds,
5164- " |O" ,
5165- const_cast <char **>(kwlist),
5166- &value))
5167- {
5168- return (NULL );
5169- }
5170-
5139+ // `_new` is used to alloc the object, `_init` is effectively the constructor
51715140 PyConduit_Node* self = (PyConduit_Node*)PyType_GenericAlloc (type,0 );
51725141
51735142 if (self)
0 commit comments