All pastes #86801 Raw Edit

Untitled

public text v1 · immutable
·published 2006-07-13 07:32 UTC
rendered paste body
import sys

real_out = sys.stdout

class MyOutput:
  def write(self, text):
    # send to web server 
    real_out.write("good")

sys.stdout = MyOutput()

print "hello world"