python data types in c++ code

Arthur Mc Coy 1984docmccoy at gmail.com
Sun Mar 6 13:01:16 EST 2011


Ok people,


I do:
for (Py_ssize_t i = 0; i< PyList_Size(py_list); ++i) {
         PuObject* obj = PyList_GetItem(py_list, i);
         if (obj != NULL) {
                   // howto get obj properties of different types
(map, list, string, int, bool) ?
         }
}

Very clear code. The question is in the comment :)
Let's play more,
it's like jazz,
let's explore,
Baby baby baby bass


Keep yourselves,
Arthur



More information about the Python-list mailing list