Skip to content

Latest commit

 

History

History
491 lines (310 loc) · 19.3 KB

object.rst

File metadata and controls

491 lines (310 loc) · 19.3 KB

c

Object Protocol

Note

If o1 and o2 are the same object, :cPyObject_RichCompareBool will always return 1 for :cPy_EQ and 0 for :cPy_NE.

pair: built-in function; len

Return the length of object o. If the object o provides either the sequence and mapping protocols, the sequence length is returned. On error, -1 is returned. This is the equivalent to the Python expression len(o).