[Neal Norwitz]
> ...
> I'm concerned about the negative ref leak in test_contextlib.  I
> wonder if this was a result of PJE's fix for generators?

I don't know, but if you do

while 1:
    test_contextlib.test_main()
    gc.collect()

under a debug build it eventually (> 500 iterations) crashes with

    Fatal Python error: deallocating None

That's a pretty good clue ;-)  The

        Py_XDECREF(gen->gi_frame);

in gen_dealloc() is on the call stack at the time, and cyclic gc is active.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to