Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | make StringIO like other file objects in that readline(-1) has no effect #7348 | Benjamin Peterson | 2009-12-13 | 1 | -1/+1 |
| | |||||
* | Fix a py3k warning in the StringIO module (exhibited in test_codecencodings_cn) | Antoine Pitrou | 2009-10-14 | 1 | -1/+1 |
| | |||||
* | [Bug #1622533] Make docstrings raw strings because they contain control ↵ | Andrew M. Kuchling | 2007-01-05 | 1 | -1/+1 |
| | | | | characters (\0, \1) | ||||
* | SF patch #1359365: file and cStringIO raise a ValueError when next() is called | Walter Dörwald | 2006-03-15 | 1 | -2/+1 |
| | | | | after calling close(). Change StringIO, so that it behaves the same way. | ||||
* | SF bug #951915: fix bug in StringIO.truncate - length not changed | Raymond Hettinger | 2004-12-20 | 1 | -0/+6 |
| | | | | (Patch by Armin Rigo.) | ||||
* | Arghh, checked in wrong draft. Replacing with correct one. | Raymond Hettinger | 2004-09-23 | 1 | -3/+4 |
| | |||||
* | Use local variables in StringIO.write(). | Raymond Hettinger | 2004-09-23 | 1 | -10/+11 |
| | | | | Makes it easier on the eyes and a bit more snappy. | ||||
* | Add missing docstrings. | Raymond Hettinger | 2004-03-14 | 1 | -0/+67 |
| | |||||
* | SF patch #907403: Improvements to cStringIO.writelines() | Raymond Hettinger | 2004-03-08 | 1 | -2/+4 |
| | | | | | | | The writelines() method now accepts any iterable argument and writes the lines one at a time rather than using ''.join(lines) followed by a single write. Results in considerable memory savings and makes the method suitable for use with generator expressions. | ||||
* | Replace backticks with repr() or "%r" | Walter Dörwald | 2004-02-12 | 1 | -2/+2 |
| | | | | From SF patch #852334. | ||||
* | Whitespace normalization. | Tim Peters | 2004-01-18 | 1 | -1/+1 |
| | |||||
* | Make the module docstring a raw string, so that the backslash in | Walter Dörwald | 2003-12-15 | 1 | -1/+1 |
| | | | | | "read until end of line ('\n') or EOF" will be treated literally. Fixes SF bug #860155. | ||||
* | Patch #822994: Consolidate tests for self.closed. | Martin v. Löwis | 2003-10-18 | 1 | -18/+14 |
| | |||||
* | Make StringIO its own iterator, similar to real files. | Guido van Rossum | 2003-01-31 | 1 | -1/+9 |
| | | | | (This should also be done to cStringIO.) | ||||
* | write(): Special case the common situation of a stream that's only | Fred Drake | 2002-09-17 | 1 | -0/+4 |
| | | | | | being used to dump output (no seeks), so we can avoid a lot of extra checks being made. | ||||
* | Remove uses of the string and types modules: | Walter Dörwald | 2002-06-03 | 1 | -3/+2 |
| | | | | | | | | | | | | | | | | | | | | | | x in string.whitespace => x.isspace() type(x) in types.StringTypes => isinstance(x, basestring) isinstance(x, types.StringTypes) => isinstance(x, basestring) type(x) is types.StringType => isinstance(x, str) type(x) == types.StringType => isinstance(x, str) string.split(x, ...) => x.split(...) string.join(x, y) => y.join(x) string.zfill(x, ...) => x.zfill(...) string.count(x, ...) => x.count(...) hasattr(types, "UnicodeType") => try: unicode except NameError: type(x) != types.TupleTuple => not isinstance(x, tuple) isinstance(x, types.TupleType) => isinstance(x, tuple) type(x) is types.IntType => isinstance(x, int) Do not mention the string module in the rlcompleter docstring. This partially applies SF patch http://www.python.org/sf/562373 (with basestring instead of string). (It excludes the changes to unittest.py and does not change the os.stat stuff.) | ||||
* | Whitespace normalization. | Tim Peters | 2002-05-23 | 1 | -6/+6 |
| | |||||
* | Added docstrings excerpted from Python Library Reference. | Raymond Hettinger | 2002-05-15 | 1 | -0/+23 |
| | | | | Closes patch 556161. | ||||
* | Make StringIO work in --disable-unicode builds... | Michael W. Hudson | 2002-05-13 | 1 | -2/+2 |
| | |||||
* | Use isinstance() in preference to comparison of type by is. | Jeremy Hylton | 2002-05-10 | 1 | -2/+2 |
| | |||||
* | Partial introduction of bools where appropriate. | Guido van Rossum | 2002-04-07 | 1 | -1/+1 |
| | |||||
* | SF #515000, print result of f.tell() in test() instead of ignoring | Neal Norwitz | 2002-02-11 | 1 | -1/+1 |
| | |||||
* | Restore Python 2.1 StringIO.py behaviour: support concatenating | Marc-André Lemburg | 2002-01-06 | 1 | -5/+8 |
| | | | | | | Unicode string snippets to larger Unicode strings. This fix should also go into Python 2.2.1. | ||||
* | StringIO patch #462596: let's [c]StringIO accept read buffers on | Marc-André Lemburg | 2001-09-24 | 1 | -1/+4 |
| | | | | input to .write() too. | ||||
* | __iter__(): New method so that StringIO's can participate in the | Barry Warsaw | 2001-09-22 | 1 | -0/+3 |
| | | | | iterator protocol. | ||||
* | Remove silly EMPTYSTRING global. Saves a global lookup. | Marc-André Lemburg | 2001-02-09 | 1 | -8/+6 |
| | |||||
* | added __all__ lists to a number of Python modules | Skip Montanaro | 2001-01-20 | 1 | -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 Drake | 2000-12-13 | 1 | -105/+105 |
| | |||||
* | Change the file's indentation from tabs to 4 spaces per level. | Barry Warsaw | 2000-12-12 | 1 | -151/+163 |
| | |||||
* | Accept Finn Bock's patch #102208 to hardcode EINVAL to 22 when errno | Barry Warsaw | 2000-12-12 | 1 | -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 Rossum | 2000-10-12 | 1 | -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 Drake | 2000-09-28 | 1 | -0/+13 |
| | | | | This closes SourceForge bug #115527. | ||||
* | Support sizehint in StringIO.readlines, as documented. | Martin v. Löwis | 2000-09-19 | 1 | -1/+5 |
| | |||||
* | Simple changes by Gerrit Holl - move author acknowledgements out of | Guido van Rossum | 2000-02-28 | 1 | -0/+2 |
| | | | | docstrings into comments. | ||||
* | Mass patch by Ka-Ping Yee: | Guido van Rossum | 2000-02-02 | 1 | -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 StringIO | Fred Drake | 1998-08-18 | 1 | -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 Rossum | 1997-07-25 | 1 | -1/+4 |
| | |||||
* | Sjoerd's StringIO speed-up | Guido van Rossum | 1996-06-19 | 1 | -7/+30 |
| | |||||
* | fix default arg for read() -- should be -1 | Guido van Rossum | 1996-01-25 | 1 | -2/+2 |
| | |||||
* | Added flush() method. | Sjoerd Mullender | 1995-07-19 | 1 | -0/+2 |
| | |||||
* | set softspace to 0 in __init__ | Guido van Rossum | 1995-06-22 | 1 | -0/+1 |
| | |||||
* | Two new generally useful modules: types defines names for all built-in types, | Guido van Rossum | 1994-06-23 | 1 | -0/+130 |
StringIO implements pseudo files writing into and reading from strings. |