[Tutor] Olle-Olla
Kent Johnson
kent37 at tds.net
Tue Apr 18 19:52:17 CEST 2006
János Juhász wrote:
> Hi All,
>
> Is it possible to replace the print statement with one of mine function ?
>
> In reality, I would like to replace the print in my PyCrust app with the
> log.write() function.
Best: Use a good editor to change your print statements to log.write()
Not so good: Replace sys.stdout with something that intercepts write()
calls and sends them to the log.
Kent
More information about the Tutor
mailing list