On 5/28/06, Tim Peters <[EMAIL PROTECTED]> wrote:
Funny, I reduced it to more or less the same thing, except the other way 'round: I suspected exceptions to be the source of the leak, so I kept adding more complicated exception processing to my leak-test until it started leaking; it started leaking the moment I added a doctest to it, but not before. I somewhat doubt it's directly related to exceptions, though.
Michael Hudson also mentioned it on #nfs, and it seems he went a little further:
00:54 <mwh> i found that test.test_support.check_syntax reliably leaks 5
references
00:55 <mwh> as does compile('1=1', '', 'exec') in fact
00:58 <mwh> it's leaking a tuple containing two Nones a string and an int, i
think
01:00 <mwh> oh well, i guess sean and richard know what they changed...
Does 'a tuple containing two Nones, a string and an int' ring a bell to anyone? :)
[... a huge number of reference leaks reported ...]
FYI, I "reduced" the relatively simple test_bisect's leaks to this
self-contained program:
Funny, I reduced it to more or less the same thing, except the other way 'round: I suspected exceptions to be the source of the leak, so I kept adding more complicated exception processing to my leak-test until it started leaking; it started leaking the moment I added a doctest to it, but not before. I somewhat doubt it's directly related to exceptions, though.
Michael Hudson also mentioned it on #nfs, and it seems he went a little further:
00:54 <mwh> i found that test.test_support.check_syntax reliably leaks 5
references
00:55 <mwh> as does compile('1=1', '', 'exec') in fact
00:58 <mwh> it's leaking a tuple containing two Nones a string and an int, i
think
01:00 <mwh> oh well, i guess sean and richard know what they changed...
--
Thomas Wouters <[EMAIL PROTECTED]>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!
_______________________________________________ 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