Open GoogleCodeExporter opened 9 years ago
Hi Stanislas,
The main reason for not taking a file object is that the underlying C library
exempi expects a file path. What you can do as a work-around now is to call
file_to_dict like this:
fp = open( '/path/to/somefile','r')
file_to_dict( fp.name )
This will however reopen the file which is probably not desirable.
Best regards,
Lars
Original comment by lniel...@spacetelescope.org
on 1 Sep 2011 at 7:08
Hi Lars,
In my context (a uploaded file via a web-application) I have a StringIO object.
My workaround is to open a NamedTemporaryFile and read/write the StringIO in
it. This is a bit of overhead but it works !
Cheers,
Stanislas.
Original comment by stanisla...@gmail.com
on 1 Sep 2011 at 7:15
Original issue reported on code.google.com by
stanisla...@gmail.com
on 30 Aug 2011 at 10:04