summaryrefslogtreecommitdiffstats
path: root/Objects/tupleobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-07-10 16:22:44 (GMT)
committerGuido van Rossum <guido@python.org>1998-07-10 16:22:44 (GMT)
commitbfc725bf64c1da301fe29b9722efc56e34799cf4 (patch)
treefc4a2176935539cbb041d99e0b489afadada4d8b /Objects/tupleobject.c
parentdf901dfdea08e29730aff9872a051e05b0104dfe (diff)
downloadcpython-bfc725bf64c1da301fe29b9722efc56e34799cf4.zip
cpython-bfc725bf64c1da301fe29b9722efc56e34799cf4.tar.gz
cpython-bfc725bf64c1da301fe29b9722efc56e34799cf4.tar.bz2
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.)
Diffstat (limited to 'Objects/tupleobject.c')
0 files changed, 0 insertions, 0 deletions