Can someone explain to me how to use StringIO? Python 2.5.2 Stackless 3.1b3 060516 (release25-maint, Apr 2 2008, 19:04:14) [MS C v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import StringIO >>> s = StringIO.StringIO() >>> s.write('hi') >>> print s.read() >>> Is this a bug?