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.
Returns the length of o, assuming that o was
returned by PySequence_Fast() and that o is
not NULL. The size can also be gotten by calling
PySequence_Size() on o, but
PySequence_Fast_GET_SIZE() is faster because it can
assume o is a list or tuple.