Conversion method for PyUnicodeObject type to PyBytesObject type

2010-05-18 Thread mathan kumar
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://

Re: Issue with PyUnicodeObject type variables

2010-05-17 Thread mathan kumar
-- Forwarded message -- From: Stefan Behnel To: python-list@python.org Date: Mon, 17 May 2010 11:33:40 +0200 Subject: Re: Issue with PyUnicodeObject type variables gmail, 17.05.2010 11:24: > A variable whose data type is PyUnicodeObject checked whether it is a > UnicodeObject type

Issues while building pyfsevents in python 3.1

2010-04-28 Thread mathan kumar
I m trying port pyfsevents coded in python2.6 to python3.1. But i m getting following errors while building that though i havent changed anything in these lines. Any idea why? " pyfsevents.c:22: error: expected specifier-qualifier-list before ‘CFFileDescriptorRef’ pyfsevents.c:30: error: expected