Assigning output from a simple python statement

Fredrik Lundh effbot at telia.com
Thu Mar 16 10:59:42 EST 2000


Michael Hudson wrote:

>     sio.seek(0)
>     return sio.read()

footnote: "return sio.getvalue()" is slightly more efficient.

</F>





More information about the Python-list mailing list