Name

getvalue

Synopsis

                     fl.

getvalue( )

Returns the current data contents of fl as a string. You cannot call fl .getvalue after you call fl .close: close frees the buffer that fl internally keeps, and getvalue needs to access the buffer to yield its result.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.