extending and embedding python table continued format python type type description " &any converterany "sstring any pyobject data processed through converter function same as "osame as "oexcept that the reference count is not incremented creates tuple of items items is string of format specifiers from this table vars is list of variables corresponding to the items in items creates list of items items is string of format specifiers vars is list of variables corresponding to the items in items creates dictionary of items "npyobject "(items)tuple vars "[items]list vars "{items}dictionary vars here are some examples of building different kinds of valuespy_buildvalue(""py_buildvalue(" ", py_buildvalue("ids", , ,"hello"py_buildvalue(" #","hello", py_buildvalue("()"py_buildvalue("( )", py_buildvalue("[ii]", , py_buildvalue("[ , ]", , py_buildvalue("{ : , : }"," ", ," ", none ( "hello""hell(( ,[ , [ , {' ': ' ': for unicode string conversions involving char *it is assumed that the data consists of series of bytes encoded using the default unicode encoding (usually utf- the data will be automatically decoded into unicode string when passed to python the only exceptions are the "yand " #conversions that return raw byte string adding values to module in the module initialization function of an extension moduleit is common to add constants and other support values the following functions can be used to do thisint pymodule_addobject(pyobject *moduleconst char *namepyobject *valueadds new value to module name is the name of the valueand value is python object containing the value you can build this value using py_buildvalue(int pymodule_addintconstant(pyobject *moduleconst char *namelong valueadds an integer value to module void pymodule_addstringconstant(pyobject *moduleconst char *nameconst char *valueadds string value to module value must be null-terminated string lib fl ff