summaryrefslogtreecommitdiffstats
path: root/Modules/cStringIO.c
Commit message (Collapse)AuthorAgeFilesLines
* Added a new "base" type, IOobject for which most of theJim Fulton2000-10-061-285/+355
| | | | | | | | | | | | | | | operations are defined. This will, hopefully clarify some of the logic. Added close test to raise proper error when operations are performed on closed StringIOs. Added a position argument to the truncate method. Added a size argument to readline. Added PyArg_Parse calls for methods that don't take arguments to make sure they don't take arguments.
* Implement readlines function. Closes Bug #110686.Martin v. Löwis2000-09-191-0/+36
|
* Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling2000-08-031-1/+2
|
* ANSIfy some more forward declarations.Thomas Wouters2000-07-241-1/+1
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* replace PyXXX_Length calls with PyXXX_Size callsJeremy Hylton2000-07-121-1/+1
|
* Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.Fred Drake2000-06-191-1/+1
|
* Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum2000-05-031-5/+5
| | | | | | | | | | For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
* raise TypeError when bad argument passed to cStringIO.StringIOJeremy Hylton2000-04-121-4/+10
|
* Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum2000-02-291-7/+7
| | | | PyArg_ParseTuple() format string arguments as possible.
* New version from Jim: don't call Py_FatalError() when initialization fails.Guido van Rossum1999-06-151-5/+2
|
* The writelines() function was never tested and contained numerous bugsGuido van Rossum1999-02-081-4/+16
| | | | | | (including a docstring saying "blah"). Fixed all this. (Please review for potential memory leaks!)
* Jim Fulton writes:Guido van Rossum1998-12-151-42/+73
| | | | | This fixes a bug that can cause core dumps when doing seeks in input StringIO objects. This has a number of other clean-ups.
* Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum1998-12-041-1/+1
| | | | on BeOS or Windows.
* New version from Jim Fulton:Guido van Rossum1998-11-251-71/+69
| | | | | | | - New copyright. (Open source) - Fixed problem in seek method. The seek method should (and now does) fill with nulls when seeking past the end of the "file".
* Use 'S' format character for the optional constructor argument, so weGuido van Rossum1998-07-241-1/+1
| | | | | get a decent error message when it's not a string (instead of confusing errors when trying to use the thing).
* I_getattr(),Fred Drake1998-07-171-1/+7
| | | | | O_getattr(): Added read-only access to the closed attribute, based on comment from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.
* Module docstring indicated seek() isn't implemented, but it is.Fred Drake1998-04-111-1/+1
|
* New versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1Guido van Rossum1997-12-041-99/+15
| | | | distribution.
* #Plug small memory leaks in constructors.Guido van Rossum1997-09-031-2/+7
|
* Fix the bug Jeremy was experiencing: both the close() and theGuido van Rossum1997-09-031-4/+19
| | | | | | | | | | | dealloc() functions contained code to free/DECREF the buffer (there were differences between I and O objects but the logic bug was the same). Fixed this be setting the buffer pointer to NULL and testing for that. (This also makes it safe to call close() more than once.) XXX Worry: what if you try to read() or write() once the thing is closed?
* cPickle release 0.3 from Jim FultonGuido van Rossum1997-08-131-120/+118
|
* My own patch: support writable 'softspace' attribute.Guido van Rossum1997-04-111-2/+23
|
* Unknown changes by Jim Fulton.Guido van Rossum1997-04-091-199/+140
|
* Quieted gcc -Wall by removing unused local variables.Barry Warsaw1997-01-141-5/+9
| | | | | Suppressing my urge to reformat according to Python coding standards! :-)
* Jim's latest version.Guido van Rossum1997-01-061-90/+129
|
* Jim F's brainchildGuido van Rossum1996-12-051-0/+678