summaryrefslogtreecommitdiff
path: root/Objects/structseq.c
AgeCommit message (Collapse)AuthorLines
2003-02-01Removed all uses of the out-of-favor __safe_for_unpickling__ magicTim Peters-1/+0
attr, and copy_reg.safe_constructors.
2002-12-18SF # 654974, fix unchecked return values in structseqNeal Norwitz-2/+6
Check return values after memory allocation. Also use Py_True instead of PyInt_FromLong(1) for bool value. Backport candidate.
2002-10-16Add n_unnamed_fields into the type.Martin v. Löwis-5/+15
2002-10-16Add PyStructSequence_UnnamedField. Add stat_float_times.Martin v. Löwis-10/+19
Use integers in stat tuple, optionally floats in named fields.
2002-04-12Remove PyMalloc_New and PyMalloc_Del.Neil Schemenauer-2/+2
2002-03-22Use pymalloc if it's enabled.Neil Schemenauer-2/+2
2002-03-07Guido pointed out that I was missing a couple decrefs.Michael W. Hudson-1/+7
2002-03-06Apply (my) patch:Michael W. Hudson-23/+76
[ 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-05A fix & test forMichael W. Hudson-1/+30
[ 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