summaryrefslogtreecommitdiff
path: root/Modules/cStringIO.c
AgeCommit message (Collapse)AuthorLines
2002-03-11backport jhylton's checkin ofMichael W. Hudson-1/+1
revision 2.33 of cStringIO.c Fix SF bug #526518 The doc string for cStringIO suggested that str() of a StringIO object was equivalent to getvalue(). This was never true, so repair the doc string. (doctest would have helped here.) Bug fix candidate for any past versions.
2001-12-08Patch supplied by Burton Radons for his own SF bug #487390: ModifyingGuido van Rossum-2/+2
type.__module__ behavior. This adds the module name and a dot in front of the type name in every type object initializer, except for built-in types (and those that already had this). Note that it touches lots of Mac modules -- I have no way to test these but the changes look right. Apologies if they're not. This also touches the weakref docs, which contains a sample type object initializer. It also touches the mmap test output, because the mmap type's repr is included in that output. It touches object.h to put the correct description in a comment.
2001-12-07O_cwrite(): rewrote for clarity, replacing all the (Oobject *)selfGuido van Rossum-15/+16
casts with a variable oself that has the proper type. A smart compiler may put this thing into a register. (I'm not sure what good this does except satisfy my desire to understand this function; I got a report about an uninitialized read from Insure++ about this function and it hurt my eyes to even look at it. I gotta run away or I'll get tempted to reformat the entire file...)
2001-09-24StringIO patch #462596: let's [c]StringIO accept read buffers onMarc-André Lemburg-9/+5
input to .write() too.
2001-09-22I_getiter(): Function for the tp_iter slot of Itype so thatBarry Warsaw-20/+45
cStringIO's can participate in the iterator protocol. Fill the Itype.tp_iter slot with I_getiter()
2001-02-09In O_writelines: Replace use of string.joinfields with "".join.Jeremy Hylton-8/+11
2000-10-06Added a new "base" type, IOobject for which most of theJim Fulton-276/+346
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.
2000-09-19Implement readlines function. Closes Bug #110686.Martin v. Löwis-0/+36
2000-08-03Use METH_VARARGS instead of numeric constant 1 in method def. tablesAndrew M. Kuchling-1/+2
2000-07-24ANSIfy some more forward declarations.Thomas Wouters-1/+1
2000-07-16Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters-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 ;)
2000-07-12replace PyXXX_Length calls with PyXXX_Size callsJeremy Hylton-1/+1
2000-06-19Fixed docstring typo, reported by Skip Montanaro <skip@mojam.com>.Fred Drake-1/+1
2000-05-03Vladimir Marangozov's long-awaited malloc restructuring.Guido van Rossum-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.)
2000-04-12raise TypeError when bad argument passed to cStringIO.StringIOJeremy Hylton-4/+10
2000-02-29Massive patch by Skip Montanaro to add ":name" to as manyGuido van Rossum-7/+7
PyArg_ParseTuple() format string arguments as possible.
1999-06-15New version from Jim: don't call Py_FatalError() when initialization fails.Guido van Rossum-5/+2
1999-02-08The writelines() function was never tested and contained numerous bugsGuido van Rossum-4/+16
(including a docstring saying "blah"). Fixed all this. (Please review for potential memory leaks!)
1998-12-15Jim Fulton writes:Guido van Rossum-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.
1998-12-04Add DL_EXPORT() to all modules that could possibly be usedGuido van Rossum-1/+1
on BeOS or Windows.
1998-11-25New version from Jim Fulton:Guido van Rossum-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".
1998-07-24Use 'S' format character for the optional constructor argument, so weGuido van Rossum-1/+1
get a decent error message when it's not a string (instead of confusing errors when trying to use the thing).
1998-07-17I_getattr(),Fred Drake-1/+7
O_getattr(): Added read-only access to the closed attribute, based on comment from Michael Scharf <Michael.Scharf@Rhein-Neckar.de>.
1998-04-11Module docstring indicated seek() isn't implemented, but it is.Fred Drake-1/+1
1997-12-04New versions of cPickle and cStringIO, from Jim Fulton's cPickle 1.0b1Guido van Rossum-99/+15
distribution.
1997-09-03#Plug small memory leaks in constructors.Guido van Rossum-2/+7
1997-09-03Fix the bug Jeremy was experiencing: both the close() and theGuido van Rossum-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?
1997-08-13cPickle release 0.3 from Jim FultonGuido van Rossum-120/+118
1997-04-11My own patch: support writable 'softspace' attribute.Guido van Rossum-2/+23
1997-04-09Unknown changes by Jim Fulton.Guido van Rossum-199/+140
1997-01-14Quieted gcc -Wall by removing unused local variables.Barry Warsaw-5/+9
Suppressing my urge to reformat according to Python coding standards! :-)
1997-01-06Jim's latest version.Guido van Rossum-90/+129
1996-12-05Jim F's brainchildGuido van Rossum-0/+678