A variable whose data type is PyUnicodeObject needs to be passed to a function as an argument whose data type should be PyBytesObject type
example : function (PyByteObject* a){ .....operations.... } PyUnicodeObject *p = somevalue; function((PyBytesObject *)p); ouptut: Got a Bus Error.
-- http://mail.python.org/mailman/listinfo/python-list