[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Python ceval.c,2.217,2.218

Skip Montanaro skip@mojam.com (Skip Montanaro)
2001年1月11日 08:13:55 -0600 (CST)


 Moshe> * Did not DECREF result from displayhook function
 ...
 Moshe> 				w = PyEval_CallObject(w, x);
 Moshe> + 				Py_XDECREF(w);
 Moshe> 				if (w == NULL)
 ...
While it works, is it really kosher to test w's value after the DECREF?
Just seems like an odd construct to me. I'm used to seeing the test
immediately after it's been set.
Skip

AltStyle によって変換されたページ (->オリジナル) /