[Python-Dev] Py_CLEAR to avoid crashes

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Feb 17 22:51:31 CET 2008


Martin v. Löwis wrote:
> when some caller of PyEval_EvalFrameEx still carries
> a pointer to some object that got deleted, and then still some code can
> get hold of the then-deleted object.

I seem to have missed the beginning of this discussion.
I don't see what the problem is here. If a caller needs
a pointer to an object, shouldn't it be holding a
counted reference to it?

--
Greg


More information about the Python-Dev mailing list