Re: [Pythonmidi-devel] Pyrex experiences?
Status: Pre-Alpha
Brought to you by:
regebro
From: Jay V. <jv...@ac...> - 2004-10-29 11:51:53
|
>The solution to this is supposed to be to write the whole python >object in C, instead of just wrapping the c methods in a python >object. C objects do get properly deallocated when a program exits, >I'm told. Now, that means that the C code suddenly gets MUCH more >complex (and it wasn't exactly trivial before either) so I'm gonna >look at doing this in Pyrex. i don't personally think that C-code to interface to python objects is that complex. i've been coding in C since '85 but only hacking python for 2 or 3 years, so maybe thats just me. and anyway, its already been done for MidiShare: /src/midishare/lang/python/src/Midi.c and /src/midishare/lang/python/src/MidiPlayer.c .. already cross the python/midi bridge. -- ; Jay Vaughan |