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

Function set_next

Objects/setobject.c:528–548  ·  view source on GitHub ↗

* Iterate over a set table. Use like so: * * Py_ssize_t pos; * setentry *entry; * pos = 0; # important! pos should not otherwise be changed by you * while (set_next(yourset, &pos, &entry)) { * Refer to borrowed reference in entry->key. * } * * CAUTION: In general, it isn't safe to use set_next in a loop that * mutates the table. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 11

set_tp_printFunction · 0.85
set_traverseFunction · 0.85
frozenset_hashFunction · 0.85
set_intersectionFunction · 0.85
set_isdisjointFunction · 0.85
set_differenceFunction · 0.85
set_issubsetFunction · 0.85
_PySet_NextFunction · 0.85
_PySet_NextEntryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected