[Python-Dev] Counting references to Py_None
dw+python-dev at hmmz.org
Sun Mar 20 13:00:45 EDT 2016
On Sun, Mar 20, 2016 at 01:43:27PM -0300, Facundo Batista wrote:
> I'm seeing that our code increases the reference counting to Py_None,
> and I find this a little strange: isn't Py_None eternal and will never
> What's the point of counting its references?
Avoiding a branch on every single Py_DECREF / Py_INCREF?
> . Facundo
> Blog: http://www.taniquetil.com.ar/plog/
> PyAr: http://www.python.org/ar/
> Twitter: @facundobatista
> Python-Dev mailing list
> Python-Dev at python.org
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/dw%2Bpython-dev%40hmmz.org
More information about the Python-Dev