Sunday, 18 August 2013

How to intercept content stdout in Pyhon?

How to intercept content stdout in Pyhon?

I make a custom command in Django where make some output to stdout. How I
can intercept stdout make some changes(for example add prefix) and write
to stderr? This is test task so do not pay attention on illogicality of
question.

No comments:

Post a Comment