Bugs item #1542051, was opened at 2006-08-17 15:21 Message generated for change (Comment added) made by gbrandl You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542051&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Interpreter Core Group: Python 2.5 >Status: Closed >Resolution: Fixed Priority: 7 Submitted By: �iga Seilnacht (zseil) Assigned to: Neal Norwitz (nnorwitz) Summary: Exceptions don't call _PyObject_GC_UNTRACK(self) Initial Comment: If I understand the GC rules correctly, BaseException and its subclasses should call _PyObject_GC_UNTRACK in their tp_dealloc methods. ---------------------------------------------------------------------- >Comment By: Georg Brandl (gbrandl) Date: 2006-09-06 06:50 Message: Logged In: YES user_id=849994 I have now committed the patch. I couldn't whip up a test, however, that would have been triggered in some way. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2006-09-05 06:09 Message: Logged In: YES user_id=33168 Yeah, this makes sense. Georg, can you come up with a test for this? (It's ok if it's only triggered with -R flag.) This also needs a NEWS entry. ---------------------------------------------------------------------- Comment By: Georg Brandl (gbrandl) Date: 2006-09-05 05:22 Message: Logged In: YES user_id=849994 Attaching my patch here. Neal: PyObject_GC_TRACK is called in PyType_GenericAlloc, which is used for exceptions since the tp_alloc slot is 0. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542051&group_id=5470
_______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com