[Python-Dev] Garbage collector problem
Kevin Jacobs
jacobs@penguin.theopalgroup.com
Fri, 28 Jun 2002 15:11:13 -0400 (EDT)
On Fri, 28 Jun 2002, Tim Peters wrote:
> I don't know what causes this. The little time I've been able to spend on
> it ended up finding an obvious buglet in some new-in-2.3 gcmodule code:
>
> for (i = 0; i <= generation; i++)
> generations[generation].count = 0;
>
> That was certainly intended to index by "i", not by "generation".
Good catch! I missed that in spite of reading those lines 20 times.
> Note that bound methods in 2.2 also create new objects, etc; that was good
> deduction, but not yet good enough <wink>.
That is why I added my "PS" about not looking into why it didn't blow up in
Python 2.2. In reality, I did look, but only for 30 seconds, and then
decided I didn't want to know.
-Kevin
--
Kevin Jacobs
The OPAL Group - Enterprise Systems Architect
Voice: (216) 986-0710 x 19 E-mail: jacobs@theopalgroup.com
Fax: (216) 986-0714 WWW: http://www.theopalgroup.com