In CPython, the methods are found in Objects/abstract.c
Modifier and Type | Field and Description |
---|---|
private static final String | |
private static final String | |
private static final String | |
protected static final String | |
protected static final String | |
private static final String | |
private static final String |
Access | Constructor and Description |
---|---|
protected |
Modifier and Type | Method and Description |
---|---|
public static TypeError | Returns: exception to throwname of function or operation f, String of argument name, String describing the expected kind of argument t, Object actual argument (not its type) o)Create a |
public static TypeError | Returns: exception to throwname of function or operation f, int ordinal of argument: 1 for "first", etc., 0 for "" n, String describing the expected kind of argument t, Object actual argument (not its type) o)Create a |
private static TypeError | Returns: an error to throwobject accessed o, String of attribute name, Slot operation slot)Crafted error supporting |
pack-priv static TypeError | Returns: exception to throwactual object offered as a name name)Create a |
pack-priv static TypeError | Returns: exception to throwof the attribute name, String expected kind of thing kind, Object provided to set this attribute in some object value)Create a |
pack-priv static TypeError | Returns: exception to throwof the attribute name, Object provided to set this attribute in some object value)Create a |
pack-priv static void | |
pack-priv static TypeError | Returns: exception to throwactual object on which setting failed obj)Create a |
public static void | |
public static void | |
pack-priv static Object | |
pack-priv static Object | |
private static PyTuple | Returns: cls.__bases__ or null normally a type object cls)Get |
pack-priv static Object | Returns: an iterator ono the claimed iterable object o)This is equivalent to the Python expression |
pack-priv static < the type of exception to throw E extends PyException> Object | Returns: an iterator ono the claimed iterable object o, Supplier<E> a supplier (e.g. lambda expression) for the exception exc)Equivalent to |
pack-priv static int | |
pack-priv static InterpreterError | Returns: exception to throwexpected kind of argument d, Object actual argument (not its type) o)Create an |
pack-priv static IndexError | Returns: exception to throwobject accessed name)Create an |
pack-priv static TypeError | Returns: exception to throwtype of target of function or operation t, PyType type of object presented as an index x)Create a |
pack-priv static TypeError | Returns: exception to throwtarget of function or operation o, Object actual object presented as an index i)Create a |
private static boolean | Returns: whetherderived is a sub-class of cls candidate derived type derived, Object type that may be an ancestor of cls)derived Return |
pack-priv static boolean | |
pack-priv static boolean | Returns: true ifo supports the iterator protocolto test o)Return |
pack-priv static boolean | Returns: true ifo is an iteratorto test o)Return true if the object |
pack-priv static Object | Returns: the attribute ornull the object in which to look for the attribute o, Object of the attribute sought name)Python |
pack-priv static Object | Returns: the attribute ornull the object in which to look for the attribute o, String of the attribute sought name)Python |
pack-priv static AttributeError | Returns: exception to throwobject accessed v, Object of attribute name)Create a |
pack-priv static AttributeError | Returns: exception to throwof object accessed type, Object of attribute name)Create a |
pack-priv static Object | |
pack-priv static AttributeError | Returns: exception to throwobject accessed v, Object of attribute name)Create a |
pack-priv static AttributeError | Returns: exception to throwof object accessed type, Object of attribute name)Create a |
private static String | |
pack-priv static AttributeError | Returns: exception to throwobject accessed v, Object of attribute name)Create a |
pack-priv static AttributeError | Returns: exception to throwof object accessed type, Object of attribute name)Create a |
pack-priv static boolean | Returns: ẁhetherderived is a sub-class of cls by
these criteria.candidate derived type. derived, Object type that may be an ancestor of cls)derived , (but
not a tuple of such).Return |
pack-priv static Object | |
pack-priv static TypeError | Returns: exception to throwexpected kind of thing t, Object actual object involved o)Create a |
pack-priv static Object | Returns: o name of function or operation f, String expected type of return t, Object actual object returned o)Submit a |
pack-priv static TypeError | Returns: exception to throwname of function or operation f, String expected type of return t, Object actual object returned o)Create a |
pack-priv static Object | Returns: comparison resultleft operand v, Object right operand w, Comparison comparison type op)Perform a rich comparison, raising |
pack-priv static boolean | Returns: comparison resultleft operand v, Object right operand w, Comparison comparison type op)Perform a rich comparison with boolean result. |
pack-priv static < type of exception T extends PyException> boolean | Returns: comparison resultleft operand v, Object right operand w, Comparison comparison type op, Supplier<T> supplies an exception of the desired type exc)Perform a rich comparison with boolean result. |
public static void | |
public static void | |
pack-priv static Object | |
public static < target type defined by T> Tc | |
public static TypeError |