]> granicus.if.org Git - python/commit
Changed PySequence_List() and PySequence_Tuple() to support
authorGuido van Rossum <guido@python.org>
Fri, 10 Jul 1998 16:22:44 +0000 (16:22 +0000)
committerGuido van Rossum <guido@python.org>
Fri, 10 Jul 1998 16:22:44 +0000 (16:22 +0000)
commitbfc725bf64c1da301fe29b9722efc56e34799cf4
treefc4a2176935539cbb041d99e0b489afadada4d8b
parentdf901dfdea08e29730aff9872a051e05b0104dfe
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.)
Objects/abstract.c