xbmc/xbmc — comment on commit cc01c76ad27ea8751ad8438f4df5012bc443332e
File: xbmc/interfaces/python/xbmcmodule/xbmcvfsmodule.cpp line 199
By Montellese:

According to the Python API for Py_BuildValue (see http://docs.python.org/c-api/arg.html#Py_BuildValue) the "b" in Py_BuildValue actually does not result in a boolean (True/False) but in an integer (from a character). Doesn't look like Py_BuildValue() has a way of returning the python objects True or False. That would have to be done using something like

if (bResult)
Py_RETURN_TRUE;
else
Py_RETURN_FALSE;