[Python-Dev] RE: test_sort.py failure

Michael Hudson mwh at python.net
Thu Jul 29 12:25:22 CEST 2004


Armin Rigo <arigo at tunes.org> writes:

> The invariants of the ob_xxx list members should be clearly
> specified somewhere and we should stick to them.

Yes.

> E.g. it is unclear to me why we allow list_ass_slice() to reset
> ob_item to NULL and ob_size to 0 without resetting ob_allocated to 0
> -- I see why it doesn't crash in a subsequent list_resize(), but it
> looks messy.

Well, "a mistake" would be my guess <wink>.

Cheers,
mwh

-- 
  You sound surprised.  We're talking about a government department
  here - they have procedures, not intelligence.
                                            -- Ben Hutchings, cam.misc


More information about the Python-Dev mailing list