]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Users of PySequence_GET_FAST() should get the length of the sequence using
authorFred Drake <fdrake@acm.org>
Tue, 29 May 2001 18:53:11 +0000 (18:53 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 29 May 2001 18:53:11 +0000 (18:53 +0000)
commitecf1b65e90d5949d56e5394cf4d3b7a999ac29ca
tree1e88ab0a3695c63c76d396064bd7ee33aba0f5d7
parentf1760de4b3806d35289a93b2151a95c9ee488316
Users of PySequence_GET_FAST() should get the length of the sequence using
PySequence_Size(), not PyObject_Size(): the later considers the mapping
methods as well as the sequence methods, which is not needed here.  Either
should be equally fast in this case, but PySequence_Size() offers a better
conceptual match.
Doc/api/api.tex