Using the 'with' statement with cStringIO objects

Fredrik Lundh fredrik at pythonware.com
Sat Sep 27 13:36:10 CEST 2008


peppergrower wrote:

> teststring='this is a test'
> 
> with cStringIO.StringIO(teststring) as testfile:
> 	pass

umm.  what exactly do you expect that code to do?

</F>




More information about the Python-list mailing list