in-memory-only file object from string

Gabriel Genellina gagsl-py at yahoo.com.ar
Wed Aug 23 18:13:02 EDT 2006


At Wednesday 23/8/2006 18:56, bobrik wrote:

>how to create a file object whose contents I initialize from a string
>and which is purely in memory?

See the standard modules: StringIO and cStringIO



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list