Files changed (11)
[new] PyByteArrayObject* PyByteArray_FromStringAndSize([string] const char *string, Py_ssize_t len);
// Remove the entry in dictionary p with key key. key must be hashable; if it isn’t, TypeError is raised. Return 0 on success or -1 on failure.
// Remove the entry in dictionary p which has a key specified by the string key. Return 0 on success or -1 on failure.
// Return a PyListObject containing all the items from the dictionary, as in the dictionary method dict.items().
// Return a PyListObject containing all the keys from the dictionary, as in the dictionary method dict.keys().
// Return a PyListObject containing all the values from the dictionary p, as in the dictionary method dict.values().
// Returns the integer n converted to base as a string with a base marker of '0b', '0o', or '0x' if applicable. When base is not 2, 8, 10, or 16, the format is 'x#num' where x is the base. If n is not an int object, it is converted with PyNumber_Index() first.
// Returns o converted to a Py_ssize_t value if o can be interpreted as an integer. If o can be converted to a Python int or long but the attempt to convert to a Py_ssize_t value would raise an OverflowError, then the exc argument is the type of exception that will be raised (usually IndexError or OverflowError). If exc is NULL, then the exception is cleared and the value is clipped to PY_SSIZE_T_MIN for a negative integer or PY_SSIZE_T_MAX for a positive integer.
// Return the result of repeating sequence object o count 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 ith element of o, or NULL on failure. This is the equivalent of the Python expression o[i].
// Return the slice of sequence object o between i1 and i2, or NULL on failure. This is the equivalent of the Python expression o[i1:i2].
// Assign object v to the ith element of o. Returns -1 on failure. This is the equivalent of the Python statement o[i] = v. This function does not steal a reference to v.
// Delete the ith element of object o. Returns -1 on failure. This is the equivalent of the Python statement del o[i].
unit_or_fail PySequence_SetSlice(PySequenceObject *o, Py_ssize_t i1, Py_ssize_t i2, PySequenceObject *v);
// Return the size of the tuple p, which must be non-NULL and point to a tuple; no error checking is performed.
// Return the object at position pos in the tuple pointed to by p. If pos is out of bounds, return NULL and sets an IndexError exception.
// Insert a reference to object o at position pos of the tuple pointed to by p. Return 0 on success.