Commit b91cbbd9 authored by Denis Bilenko's avatar Denis Bilenko

add a comment

parent c68a29d4
...@@ -103,7 +103,8 @@ static void gevent_callback(struct ev_loop *_loop, void *c_watcher, int revents) ...@@ -103,7 +103,8 @@ static void gevent_callback(struct ev_loop *_loop, void *c_watcher, int revents)
else { else {
py_events = NULL; py_events = NULL;
} }
// should incref args? /* no need to incref 'args'; PyEval_EvalCodeEx which eventually will be called will
* increase the reference of every element in args*/
result = PyObject_Call(watcher->_callback, args, NULL); result = PyObject_Call(watcher->_callback, args, NULL);
if (result) { if (result) {
Py_DECREF(result); Py_DECREF(result);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment