python data types in c++ code

Miki Tebeka miki.tebeka at gmail.com
Sun Mar 6 20:24:23 EST 2011


>                    // howto get obj properties of different types
> (map, list, string, int, bool) ?
Python's C API is very well documented. You can use http://docs.python.org/c-api/object.html?highlight=pyobject#PyObject_GetAttr to get attributes or http://docs.python.org/c-api/object.html?highlight=pyobject#PyObject_GetItem to get items (from dictionaries and maps).

HTH
--
Miki Tebeka <miki.tebeka at gmail.com>
http://pythonwise.blogspot.com



More information about the Python-list mailing list