Returns the number of objects in sequence o on success, and
-1 on failure. For objects that do not provide sequence
protocol, this is equivalent to the Python expression
"len(o)".
Return the concatenation of o1 and o2 on success, and NULL on
failure. The operation is done in-place when o1 supports it.
This is the equivalent of the Python expression "o1 += o2".
Return the result of repeating sequence object ocount times, or
NULL on failure. The operation is done in-place when o
supports it. This is the equivalent of the Python expression "o
*= count".
Return the number of occurrences of value in o, that is,
return the number of keys for which o[key] ==
value. On failure, return -1. This is equivalent to
the Python expression "o.count(value)".
Determine if o contains value. If an item in o is
equal to value, return 1, otherwise return 0. On
error, return -1. This is equivalent to the Python expression
"value in o".
Return a tuple object with the same contents as the arbitrary sequence
o. If o is a tuple, a new reference will be returned,
otherwise a tuple will be constructed with the appropriate contents.
Returns the sequence o as a tuple, unless it is already a
tuple or list, in which case o is returned. Use
PySequence_Fast_GET_ITEM() to access the members of the
result. Returns NULL on failure. If the object is not a sequence,
raises TypeError with m as the message text.
Return the ith element of o, assuming that o was
returned by PySequence_Fast(), and that i is within
bounds. The caller is expected to get the length of the sequence by
calling PySequence_Size() on o, since lists and tuples
are guaranteed to always return their true length.