(original) (raw)



On 7/10/06, Raymond Hettinger <rhettinger@ewtllc.com> wrote:

Brett Cannon wrote:

> As I am sure some have noticed, as part of my dissertation I have been
> trying to fix the various crashers.

Nice project.

One quick thought:  Any crasher that relies on
gc.get_referrers() should
not be considered a bug.

Right.  That is on the list of crashers I am ignoring.


  The codebase should not be convoluted,
complexified, obfucated, altered, touched, or slowed down just prevent
perverse, sadistic safe-cracking using this tool.  The docs are clear on
this subject:

"Care must be taken when using objeccts returned by get_referrers()

becasue some of them could still be under construction and hence in a
temporarily invalid state.  Avoid using get_referrers() for any purpose
other than debugging."

And I am trying to make sure all the fixes are not superfluous but fix actual issues in the code and behaviour of Python.


-Brett