A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-January/011524.html below:

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

[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Python ceval.c,2.217,2.218Skip Montanaro skip@mojam.com (Skip Montanaro)
Thu, 11 Jan 2001 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






RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4