Author brett.cannon
Recipients arigo, brett.cannon, gvanrossum
Date 2007-09-15.21:34:46
SpamBayes Score 0.0669998
Marked as misclassified No
Message-id <1189892087.33.0.583350854064.issue1164@psf.upfronthosting.co.za>
In-reply-to
Content
Since I already did this once I just did a more thorough job; patch is
attached.

PyObject_WriteString() just calls PyFile_WriteObject() which ends up
using PyObject_Print(), so it is was simple to handle those cases.  I
then released the GIL for strings, lists, and ints.  That is enough to
pass Armin's deadlock test.

If the approach I am taking is OK with people and I can go through
Object/*.c and do the proper thing for all the various object types for
fprintf(), fputs(), fputc() and fwrite() (while skipping all of the
debug output stuff) before committing the changes.
Files
File name Uploaded
release_GIL_around_stdout.diff brett.cannon, 2007-09-15.21:34:46
History
Date User Action Args
2007-09-15 21:34:47brett.cannonsetspambayes_score: 0.0669998 -> 0.0669998
recipients: + brett.cannon, gvanrossum, arigo
2007-09-15 21:34:47brett.cannonsetspambayes_score: 0.0669998 -> 0.0669998
messageid: <1189892087.33.0.583350854064.issue1164@psf.upfronthosting.co.za>
2007-09-15 21:34:47brett.cannonlinkissue1164 messages
2007-09-15 21:34:46brett.cannoncreate