[issue34495] excess_args asserts if args == nullptr

Tatyana report at bugs.python.org
Wed Aug 29 15:40:17 EDT 2018


Tatyana <tatyana at synopsys.com> added the comment:

So, user has to do

	PyObject *empty_args = PyTuple_New(0);
	inst = PyBaseObject_Type.tp_new(type_obj, empty_args, Py_None);
	Py_DECREF(empty_args);


when type_obj doesn't require arguments for constructing?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34495>
_______________________________________


More information about the Python-bugs-list mailing list