[Patches] [Patch #101412] add gc.DEBUG_SAVEALL option, gc_str fix

noreply@sourceforge.net noreply@sourceforge.net
Fri, 22 Sep 2000 06:58:53 -0700


Patch #101412 has been updated. 

Project: 
Category: core (C code)
Status: Open
Summary: add gc.DEBUG_SAVEALL option, gc_str fix

Follow-Ups:

Date: 2000-Sep-03 20:13
By: marangoz

Comment:
Looks good. I approve the str fix. One nit: "else" clauses usually go
to a new line in the Python source. Make it "else if" on a new line.

Questions:

- DEBUG_LEAK now includes SAVEALL. The regression test suite sets
   DEBUG_LEAK by default. It used to report a bunch of objects during
   test_gc. Now it will collect the detected cycles in the suite. Should
   regrtest.py report them somehow?

- After the regression test, gc.garbage contains an A instance and an
   empty list. I think they're created by test_gc. Can't they be cleared?
   We can assign gc.garbage = [], but this doesn't clear anything.

- test_gc/test_saveall has gc.set_debug(0), followed immediately by
   gc.set_debug(gc.DEBUG_SAVEALL).
   Is this on purpose or is it a typo? BTW, I don't quite understand why
   this function does what it does... Could you elaborate on it?
-------------------------------------------------------

Date: 2000-Sep-04 07:05
By: nascheme

Comment:
- regrtest will print the repr of cyclic garbage found if -l option is specified and -q is not
- put else on newline in accordance with Python style
- constrain debugging options during test_gc (don't enabled DEBUG_LEAK)
- fix test_gc to remove garbage from gc.garbage
-------------------------------------------------------

Date: 2000-Sep-21 21:35
By: tim_one

Comment:
Is there a reason this patch is just sitting here?  *Looks* like all the concerns were addressed two weeks ago.
-------------------------------------------------------

Date: 2000-Sep-22 06:58
By: nascheme

Comment:
Is this patch is okay for 2.0?  If so I can check it in and close the patch.  I was planning to wait for post 2.0.
-------------------------------------------------------

-------------------------------------------------------
For more info, visit:

http://sourceforge.net/patch/?func=detailpatch&patch_id=101412&group_id=5470