source:
trunk/essentials/dev-lang/python/Lib/StringIO.py@
3226
| Last change on this file since 3226 was 3225, checked in by , 19 years ago | |
|---|---|
| File size: 10.3 KB | |
| Line | |
|---|---|
| 1 | r"""File-like objects that read from or write to a string buffer. |
| 2 | |
| 3 | This implements (nearly) all stdio methods. |
| 4 | |
| 5 | f = StringIO() # ready for writing |
| 6 | f = StringIO(buf) # ready for reading |
| 7 | f.close() # explicitly release resources held |
| 8 | flag = f.isatty() # always false |
| 9 | pos = f.tell() # get current position |
