Chris Angelico wrote:
If you've Py_DECREFed it and then peek into its internals, you're
aiming a gun at your foot.

That's true. A safer way would be to look at the refcount
*before* decreffing and verify that it's what you expect.

--
Greg
--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to