MCPcopy Create free account
hub / github.com/boostorg/build / list_from_python

Function list_from_python

v2/engine/lists.c:459–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459LIST * list_from_python( PyObject * l )
460{
461 LIST * result = L0;
462
463 Py_ssize_t n = PySequence_Size( l );
464 Py_ssize_t i;
465 for ( i = 0; i < n; ++i )
466 {
467 PyObject * v = PySequence_GetItem( l, i );
468 result = list_push_back( result, object_new( PyString_AsString( v ) ) );
469 Py_DECREF( v );
470 }
471
472 return result;
473}
474
475#endif

Callers

nothing calls this directly

Calls 2

list_push_backFunction · 0.85
object_newFunction · 0.85

Tested by

no test coverage detected