[Python-Dev] Counting references to Py_None
David Wilson
dw+python-dev at hmmz.org
Sun Mar 20 13:00:45 EDT 2016
More information about the Python-Dev mailing list
Sun Mar 20 13:00:45 EDT 2016
- Previous message (by thread): [Python-Dev] Counting references to Py_None
- Next message (by thread): [Python-Dev] Counting references to Py_None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Mar 20, 2016 at 01:43:27PM -0300, Facundo Batista wrote: > Hello! > > 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 > die? > > What's the point of counting its references? Avoiding a branch on every single Py_DECREF / Py_INCREF? > > Thanks! > > -- > . 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 > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: https://mail.python.org/mailman/options/python-dev/dw%2Bpython-dev%40hmmz.org
- Previous message (by thread): [Python-Dev] Counting references to Py_None
- Next message (by thread): [Python-Dev] Counting references to Py_None
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list