summaryrefslogtreecommitdiffstats
path: root/Lib/StringIO.py
Commit message (Collapse)AuthorAgeFilesLines
* [ Bug #116636 ] Bug in StringIO.write()Guido van Rossum2000-10-121-0/+2
| | | | | | | | | | | | http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470 bobalex@rsv.ricoh.com Bug report: If the file position is less than the end of the "file", and a write is performed extending past then end of the file, the data string is corrupted. Solution: in write(), when writing past the end, properly set self.len when newpos is > self.len.
* Add truncate() method to StringIO objects.Fred Drake2000-09-281-0/+13
| | | | This closes SourceForge bug #115527.
* Support sizehint in StringIO.readlines, as documented.Martin v. Löwis2000-09-191-1/+5
|
* Simple changes by Gerrit Holl - move author acknowledgements out ofGuido van Rossum2000-02-281-0/+2
| | | | docstrings into comments.
* Mass patch by Ka-Ping Yee:Guido van Rossum2000-02-021-27/+27
| | | | | | | | | | | 1. Comments at the beginning of the module, before functions, and before classes have been turned into docstrings. 2. Tabs are normalized to four spaces. Also, removed the "remove" function from dircmp.py, which reimplements list.remove() (it must have been very old).
* Raise the right exception (ValueError) for attempted I/O on closed StringIOFred Drake1998-08-181-1/+14
| | | | | objects; this makes the emulation of file objects a bit better, and the exceptions explain things a bit better.
* Patch by Lars Wirzenius to allow f.readline(length).Guido van Rossum1997-07-251-1/+4
|
* Sjoerd's StringIO speed-upGuido van Rossum1996-06-191-7/+30
|
* fix default arg for read() -- should be -1Guido van Rossum1996-01-251-2/+2
|
* Added flush() method.Sjoerd Mullender1995-07-191-0/+2
|
* set softspace to 0 in __init__Guido van Rossum1995-06-221-0/+1
|
* Two new generally useful modules: types defines names for all built-in types,Guido van Rossum1994-06-231-0/+130
StringIO implements pseudo files writing into and reading from strings.