]> granicus.if.org Git - python/commit
Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem
authorMichael W. Hudson <mwh@python.net>
Mon, 2 Aug 2004 14:50:43 +0000 (14:50 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 2 Aug 2004 14:50:43 +0000 (14:50 +0000)
commita3711f73c1bdc4022d4c77a37c884672817c88f8
treeffc71c0b47aacb9b1bcb6fa01424c6e6ecf35a6a
parent77a602fbf292f3673e021e2b2567caaf70712645
Fix for the unfortunate fact that PyDict_GetItem and PyObject_GetItem
have differing refcount semantics.  If anyone sees a prettier way to
acheive the same ends, then please go for it.

I think this is the first time I've ever used Py_XINCREF.
Python/ceval.c