~ubuntu-branches/ubuntu/lucid/python2.6/lucid

« back to all changes in this revision

Viewing changes to Objects/abstract.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-10-03 12:03:05 UTC
  • mto: (10.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 32.
  • Revision ID: james.westby@ubuntu.com-20091003120305-hij6yssh0figh590
Tags: upstream-2.6.3
ImportĀ upstreamĀ versionĀ 2.6.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2244
2244
 
2245
2245
/* Iterate over seq.  Result depends on the operation:
2246
2246
   PY_ITERSEARCH_COUNT:  -1 if error, else # of times obj appears in seq.
2247
 
   PY_ITERSEARCH_INDEX:  0-based index of first occurence of obj in seq;
 
2247
   PY_ITERSEARCH_INDEX:  0-based index of first occurrence of obj in seq;
2248
2248
        set ValueError and return -1 if none found; also return -1 on error.
2249
2249
   Py_ITERSEARCH_CONTAINS:  return 1 if obj in seq, else 0; -1 on error.
2250
2250
*/