Name

PySequence_SetSlice

Synopsis

int PySequence_SetSlice(PyObject* x,int start,int stop,PyObject* v)

Sets x’s slice from start to stop to v, like Python’s x [ start:stop ]= v. Just as in the equivalent Python statement, v must be a sequence of the same type as x.

Get Python in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.