[Python-Dev] Re: [Python-checkins] python/dist/src/Objects typeobject.c, 2.242, 2.243

Michael Hudson mwh at python.net
Mon Aug 11 12:02:16 EDT 2003

"Tim Peters" <tim.one at comcast.net> writes:

> [Michael Hudson]
>> This is deeply weird.  Watch:
>> [mwh at pc150 build-debug]$ ./python.exe
>> Python 2.4a0 (#25, Aug  8 2003, 14:17:07)
>> [GCC 3.1 20020420 (prerelease)] on darwin
>> Type "help", "copyright", "credits" or "license" for more information.
>>>>> from test import test_support
>> [40915 refs]
>>>>> test_support.verbose = 0
>> [41028 refs]
> We're different already:  my total refs stay at a comparatively slim 21426
> after both initial lines.  Maybe you're tracking a leak due to GNU readline?

Perhaps.  I should try running under -E, I guess.  But I don't think so.

> As for the rest, mine leaks 166 references per stab without variation:
> Hmm -- I'm not sure my 2.4 build is entirely up to date, though.

I don't think so -- I fixed a big bundle of leaks in my
assigning-to-__bases__ code just a few days ago.

I'll try and dig myself, but it's too bloody hot to think here at the


  ZAPHOD:  You know what I'm thinking?
    FORD:  No.
  ZAPHOD:  Neither do I.  Frightening isn't it?
                   -- The Hitch-Hikers Guide to the Galaxy, Episode 11

More information about the Python-Dev mailing list