summaryrefslogtreecommitdiffstats
path: root/Lib/StringIO.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove silly EMPTYSTRING global. Saves a global lookup.Marc-André Lemburg2001-02-091-8/+6
|
* added __all__ lists to a number of Python modulesSkip Montanaro2001-01-201-0/+2
| | | | | | | | added test script and expected output file as well this closes patch 103297. __all__ attributes will be added to other modules without first submitting a patch, just adding the necessary line to the test script to verify more-or-less correct implementation.
* Untabify! (Barry, this is gonna cost you a bottle of wine! ;)Fred Drake2000-12-131-105/+105
|
* Change the file's indentation from tabs to 4 spaces per level.Barry Warsaw2000-12-121-151/+163
|
* Accept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errnoBarry Warsaw2000-12-121-13/+16
| | | | | | | | can't be imported. This makes StringIO.py work with Jython. Also, get rid of the string module by converting to string methods. Shorten some lines by using augmented assignment where appropriate.
* [ 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.