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 amaury.forgeotdarc
Recipients amaury.forgeotdarc, benjamin.peterson, brodie
Date 2008-07-01.08:59:20
SpamBayes Score 0.024667557
Marked as misclassified No
Message-id <1214902764.84.0.018522379314.issue3242@psf.upfronthosting.co.za>
In-reply-to
Content
I reproduced the problem on windows, and it is indeed a problem with the
"print" statement, when the write() method reassigns sys.stdout: the
code calls PyFile_WriteString(), then PyFile_SoftSpace on the same
object, which has been freed in your case.
A pair of INCREF/DECREF did the trick. See attached patch.
History
Date User Action Args
2008-07-01 08:59:25amaury.forgeotdarcsetspambayes_score: 0.0246676 -> 0.024667557
recipients: + amaury.forgeotdarc, benjamin.peterson, brodie
2008-07-01 08:59:24amaury.forgeotdarcsetspambayes_score: 0.0246676 -> 0.0246676
messageid: <1214902764.84.0.018522379314.issue3242@psf.upfronthosting.co.za>
2008-07-01 08:59:22amaury.forgeotdarclinkissue3242 messages
2008-07-01 08:59:22amaury.forgeotdarccreate