Will python interpreter deallocate memory of object if its reference count is negative?
For example if I have a such code will time_tuple be deallocated by python?
PyObject* list = PyList_New(2);
PyObject *time_tuple = Py_BuildValue("(s, s)", "Time", "O");
PyList_SetItem(list, 0, time_tuple);
Py_XDECREF(time_tuple);
Py_XDECREF(list);
Please refer to some documentation in your answer if you can.