GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

No menu could be recovered. Follow the blue links in the page.

This view

  • Original page
  • New address

GeezerVison is showing docs.python.org — 4.5 StringIO -- Read and write strings as files

Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 4.4 fpformat Up: 4. String Services Next: 4.6 cStringIO

4.5 StringIO -- Read and write strings as files

This module implements a file-like class, StringIO, that reads and writes a string buffer (also known as memory files). See the description on file objects for operations (section ).

StringIO ([buffer])
When a StringIO object is created, it can be initialized to an existing string by passing the string to the constructor. If no string is given, the StringIO will start empty.

The following methods of StringIO objects require special mention:

getvalue ()
Retrieve the entire contents of the ``file'' at any time before the StringIO object's close() method is called.

close ()
Free the memory buffer.


Previous Page Up One Level Next Page Python Library Reference Contents Module Index Index
Previous: 4.4 fpformat Up: 4. String Services Next: 4.6 cStringIO

See About this document... for information on suggesting changes.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.