how to convert pymedia.audio.acodec ACString to ctypes.c_char_p

2008-12-19 Thread sanket
ta) . gives me following error # TypeError: string or integer address expected instead of ACString instance # */ I am getting error while converting r.data (which is ACstring object) in to ctypes.c_char_p. can you help me solving this problem? any help would be appericiated, Thank you, sa

segmentation fault while using ctypes

2009-04-14 Thread sanket
my_func(filename,100,10) print "" if __name__ == "__main__": main() == END OF PYTHON CODE == Thank you in advance, sanket -- http://mail.python.org/mailman/listinfo/python-list

Re: segmentation fault while using ctypes

2009-04-14 Thread sanket
On Apr 14, 4:00 pm, MRAB wrote: > sanket wrote: > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can call this function for couple of times and then sudden

Re: segmentation fault while using ctypes

2009-04-14 Thread sanket
On Apr 14, 3:56 pm, "Diez B. Roggisch" wrote: > sanket schrieb: > > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can call this function for c

Re: segmentation fault while using ctypes

2009-04-15 Thread sanket
On Apr 14, 9:00 pm, bieff...@gmail.com wrote: > On Apr 15, 12:39 am, sanket wrote: > > > > > Hello All, > > > I am dealing with this weird bug. > > I have a function in C and I have written python bindings for it using > > ctypes. > > > I can

SimpleJson is slow .... is there any C Compiled version ?

2008-07-25 Thread sanket
database results in to json. So I was just wondering is there any C compiled version of simplejson is available? or any help regarding this issue would be appreciated. Thank you, Sanket -- http://mail.python.org/mailman/listinfo/python-list

Re: SimpleJson is slow .... is there any C Compiled version ?

2008-07-25 Thread sanket
On Jul 25, 5:52 pm, Matt Nordhoff <[EMAIL PROTECTED]> wrote: > sanket wrote: > > Hello All, > > > I have created an API which fetches some data from the database. > > I am using simplejson to encode it and return it back. > > > Now the problem is that, t

how to spawn a process under different user

2009-07-02 Thread sanket
k you, sanket -- http://mail.python.org/mailman/listinfo/python-list

Re: how to spawn a process under different user

2009-07-02 Thread sanket
On Jul 2, 1:58 pm, Tim Golden wrote: > sanket wrote: > > Hello All, > > > I am trying to use python's subprocess module to launch a process. > > but in order to do that I have to change the user. > > > I am not getting any clue how to do that? > > so