]> granicus.if.org Git - python/commit
Users of PySequence_GET_FAST() should get the length of the sequence using
authorFred Drake <fdrake@acm.org>
Tue, 29 May 2001 18:51:41 +0000 (18:51 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 29 May 2001 18:51:41 +0000 (18:51 +0000)
commit96a2a80065603746e655ec4e7f2d6e488a5b9b36
tree19192f7972d63fb05fff6613bc8e0613e42208ed
parentdc9e7e42c85186986819f037e1eed751d3548a2c
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