After going through the 
https://github.com/python/cpython/blob/master/Include/object.h it seems that 
Py_XDECREF is just calling Py_DECREF if the PyObject pointer is not NULL. This 
if statement could be directly implemented in Py_DECREF right? Therefore is it 
really required to have Py_XDECREF? Why not use a DeprecationWarning for now 
and plan to deprecate Py_XDECREF in the near future?
How about implementing an if statement in Py_DECREF to make it work like 
Py_XDECREF?

Thanking you,

With Regards
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/TDXJZJF35JF2WVZXE6L6EIJRZSKLSZBU/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to