commit | 5026f15c058e6bbeb2530545a713b08900b36398 | [log] [tgz] |
---|---|---|
author | Jean-Paul Calderone <exarkun@divmod.com> | Thu Jul 16 18:47:27 2009 -0400 |
committer | Jean-Paul Calderone <exarkun@divmod.com> | Thu Jul 16 18:47:27 2009 -0400 |
tree | d5619104bb94ddf3538b06720299148a1b7c93eb | |
parent | 88f38b2073e38293fcca7c6239098ea951c4e248 [diff] [blame] |
A comment about this local, as recommended by rick
diff --git a/src/util.c b/src/util.c index f81e068..ae6ee5e 100644 --- a/src/util.c +++ b/src/util.c
@@ -51,6 +51,11 @@ */ void flush_error_queue(void) { + /* + * Make sure to save the errors to a local. Py_DECREF might expand such + * that it evaluates its argument more than once, which would lead to + * very nasty things if we just invoked it with error_queue_to_list(). + */ PyObject *list = error_queue_to_list(); Py_DECREF(list); }