[Tutor] help on StringIO

inhahe inhahe at gmail.com
Mon May 26 12:06:42 CEST 2008


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?


More information about the Tutor mailing list