Re: Is it possible to let a virtual file created by cStringIO have a filename so that functions can read it by its filename?

2011-01-17 Thread Cun Zhang
hi Chris, Thank you for your advice. I will use tmpfs as a temperory file system to detail with it. Cheers, Cun Zhang On Sat, Jan 15, 2011 at 4:51 AM, Chris Rebert wrote: > On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote: > > Hi,all > > I hope use cStringIO to create virtual file, but my cus

Re: Is it possible to let a virtual file created by cStringIO have a filename so that functions can read it by its filename?

2011-01-14 Thread Steven Howe
On 01/14/2011 12:51 PM, Chris Rebert wrote: On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote: Hi,all I hope use cStringIO to create virtual file, but my customed function which is from a shared library imported by ctypes just accepts a filename(string type) as parameter. So I'm wondering wheth

Re: Is it possible to let a virtual file created by cStringIO have a filename so that functions can read it by its filename?

2011-01-14 Thread Chris Rebert
On Fri, Jan 14, 2011 at 7:52 AM, Cun Zhang wrote: > Hi,all > I hope use cStringIO to create virtual file, but my customed function which > is from a shared library imported by ctypes > just accepts a filename(string type) as parameter. > > So I'm wondering whether there is any method that make the

Is it possible to let a virtual file created by cStringIO have a filename so that functions can read it by its filename?

2011-01-14 Thread Cun Zhang
Hi,all I hope use cStringIO to create virtual file, but my customed function which is from a shared library imported by ctypes just accepts a filename(string type) as parameter. So I'm wondering whether there is any method that make the virtual file created by cStringIO like a normal file which ha