commit | bfc725bf64c1da301fe29b9722efc56e34799cf4 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jul 10 16:22:44 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jul 10 16:22:44 1998 +0000 |
tree | fc4a2176935539cbb041d99e0b489afadada4d8b | |
parent | df901dfdea08e29730aff9872a051e05b0104dfe [diff] |
Changed PySequence_List() and PySequence_Tuple() to support "indefinite length" sequences. These should still have a length, but the length is only used as a hint -- the actual length of the sequence is determined by the item that raises IndexError, which may be either smaller or larger than what len() returns. (This is a novelty; map(), filter() and reduce() only allow the actual length to be larger than what len() returns, not shorter. I'll fix that shortly.)