And now to sth. completely different: Forget about decorators,think cgi.FieldStorage

  • Thread starter Ames Andreas (MPA/DF)
  • Start date
A

Ames Andreas (MPA/DF)

Hi,

is it fair to assume that after executing the following code

fs = cgi.FieldStorage(fp = somefile, keep_blank_values = 1)
stream = fs.file or StringIO(fs.value)

stream is a seekable copy of somefile, i. e. stream.seek(0) works AND
stream's contents are the same a somefile's? The docstring seems to
suggest that but I wanted to be certain.


tia,

andreas
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top