from StringIO import StringIO f = StringIO('abc')print repr(f.read())print repr(f.read())
Standard input is empty
'abc' ''
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!