MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / list_resize

Function list_resize

Objects/listobject.c:24–73  ·  view source on GitHub ↗

Ensure ob_item has room for at least newsize elements, and set * ob_size to newsize. If newsize > ob_size on entry, the content * of the new slots at exit is undefined heap trash; it's the caller's * responsibility to overwrite them with sane values. * The number of allocated elements may grow, shrink, or stay the same. * Failure is impossible if newsize <= self.allocated on entry, although

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 7

ins1Function · 0.85
app1Function · 0.85
list_printFunction · 0.85
list_inplace_repeatFunction · 0.85
listextendFunction · 0.85
listpopFunction · 0.85
list_ass_subscriptFunction · 0.85

Calls 1

PyErr_NoMemoryFunction · 0.85

Tested by

no test coverage detected