Walter Dörwald wrote:

> The "checking for NULL" scenario looks somewhat like this:
> 
> And the "clearing the reference" scenario should look ike this:

But only if the reference is a local to the function,
and it's used in a disciplined enough way, and the
compiler is smart enough. None of those things are
guaranteed true for all uses of Py_DECREF/Py_XDECREF.

--
Greg
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to