[code.view]

[top] / python / PyMOTW / sys / sys_stdio.py

     #!/usr/bin/env python
     # encoding: utf-8
     #
     # Copyright (c) 2009 Doug Hellmann All rights reserved.
     #
     """
     """
     #end_pymotw_header
     
     import sys
     
     print >>sys.stderr, 'STATUS: Reading from stdin'
     
     data = sys.stdin.read()
     
     print >>sys.stderr, 'STATUS: Writing data to stdout'
     
     sys.stdout.write(data)
     sys.stdout.flush()
     
     print >>sys.stderr, 'STATUS: Done'
     

[top] / python / PyMOTW / sys / sys_stdio.py

contact | logmethods.com