<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div><div>Hi All,<br><br>A variable whose data type is PyUnicodeObject needs to passed to a function as an argument whose data type should be PyBytesObject type <br><br>example :<br><br>PyUnicodeObject *p = ...whatever...;  <br>function (PyByteObject* a);  <br><br>function((PyBytesObject *)p);<br><br>compiled and got a Bus Error.<br><br>Thanks for spending ur valuable time.<br></div></div></body></html>