summaryrefslogtreecommitdiff
path: root/Objects/structseq.c
AgeCommit message (Collapse)AuthorLines
2002-03-07backport my checkin ofMichael W. Hudson-1/+7
revision 1.6 of structseq.c Guido pointed out that I was missing a couple decrefs.
2002-03-07After some thinking, I decided to move all of this across ontoMichael W. Hudson-23/+76
the branch. I don't think it can break code, so the only risk is introducing new bugs. In that vein, can I ask -checkins readers who have time to carefully look this over, check my refcounts &c? TIA. backport my checkin of revision 1.5 of structseq.c Apply (my) patch: [ 526072 ] pickling os.stat results round II structseq's constructors can now take "invisible" fields in a dict. Gave the constructors better error messages. their __reduce__ method puts these fields in a dict. (this is all in aid of getting os.stat_result's to pickle portably) Also fixes [ 526039 ] devious code can crash structseqs Thought needed about how much of this counts as a bugfix. Certainly #526039 needs to be fixed.
2002-03-05backport my checkin ofMichael W. Hudson-1/+30
revision 1.4 of structseq.c A fix & test for [ 496873 ] structseqs unpicklable by adding a __reduce__ method to structseqs. Will also commit this to the 2.2.1 branch momentarily.
2001-11-28structseq_new(): Conversion of sprintf() to PyOS_snprintf() for bufferBarry Warsaw-1/+2
overrun avoidance.
2001-10-30Fix bad bug in structseq slicing (NULL pointers in result). Reported byTim Peters-1/+1
Jack Jansen on python-dev. Add simple test case. Move vereq() from test_descr to test_support (it's handy!).
2001-10-18Missing file structseq.c for SF patch #462296Guido van Rossum-0/+284