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
Date 2008-07-11.12:20:45
SpamBayes Score 0.008565918
Marked as misclassified No
Message-id <1215778849.22.0.645711118374.issue3343@psf.upfronthosting.co.za>
In-reply-to
Content
This new function is not documented at all.
And I find the error handling not consistent: when filename is NULL, -1
is returned, but no exception is set.

IMO the return code should be as follow:
- return 1 if a line was printed
- return 0 if the line cannot be found
- return -1 in case of error (when calling PyFile_WriteString); an
exception is set.
History
Date User Action Args
2008-07-11 12:20:49amaury.forgeotdarcsetspambayes_score: 0.00856592 -> 0.008565918
recipients: + amaury.forgeotdarc
2008-07-11 12:20:49amaury.forgeotdarcsetspambayes_score: 0.00856592 -> 0.00856592
messageid: <1215778849.22.0.645711118374.issue3343@psf.upfronthosting.co.za>
2008-07-11 12:20:46amaury.forgeotdarclinkissue3343 messages
2008-07-11 12:20:45amaury.forgeotdarccreate