This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author MrJean1
Recipients MrJean1, christian.heimes, gvanrossum, nnorwitz
Date 2007-10-28.17:44:19
SpamBayes Score 0.015073435
Marked as misclassified No
Message-id <1193593461.54.0.171548511462.issue1329@psf.upfronthosting.co.za>
In-reply-to
Content
I could not try Neal's patch since it does not seem to apply to the 
3.0a1 source I have.  But the Modules/_fileio.c patch works just fine on 
my Linux and MacOS X.  Here is the Linux result: 

$ env  LD_PRELOAD=./dlibtest4.so  ~/Python-3dbg/python
*** ctor called in python ...
*** atexit OK in python ...
Python 3.0a1 (py3k, Oct 28 2007, 10:23:59) 
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
[36000 refs]
[21985 refs]
*** dtor called in python ...
$

Most interesting is that this Python build --with-pydebug now prints 2 
lines in [..] brackets on exit.  That 2nd line, [21985 refs] never 
showed up before!

Also, attached is another version of my test case renamed to dlibtest4.  
It includes 4 different use cases.  More details inside.
Files
File name Uploaded
dlibtest4.c MrJean1, 2007-10-28.17:44:19
History
Date User Action Args
2007-10-28 17:44:21MrJean1setspambayes_score: 0.0150734 -> 0.015073435
recipients: + MrJean1, gvanrossum, nnorwitz, christian.heimes
2007-10-28 17:44:21MrJean1setspambayes_score: 0.0150734 -> 0.0150734
messageid: <1193593461.54.0.171548511462.issue1329@psf.upfronthosting.co.za>
2007-10-28 17:44:21MrJean1linkissue1329 messages
2007-10-28 17:44:21MrJean1create