Re: [Python-Dev] PyArg_ParseTuple and Py_BuildValue question

2008-04-23 Thread Benjamin Peterson
He emailed me back saying that he found the solution to his problem. -- Cheers, Benjamin Peterson ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/p

Re: [Python-Dev] PyArg_ParseTuple and Py_BuildValue question

2008-04-23 Thread Hrvoje Nikšić
On Thu, 2008-04-10 at 09:23 +0800, Alvin Delagon wrote: > I'm currently writing a simple python SCTP module in C. So far it > works sending and receiving strings from it. [...] > I'm going to construct an SS7 packet in python using struct.pack(). > Here's the question, how am I going to pass the p

Re: [Python-Dev] PyArg_ParseTuple and Py_BuildValue question

2008-04-22 Thread Christian Heimes
Alvin Delagon schrieb: > I'm going to construct an SS7 packet in python using struct.pack(). Here's > the question, how am I going to pass the packet I wrote in python to my > module and back? I already asked this question in comp.lang.python but so > far no responses yet. I hope anyone can point m

Re: [Python-Dev] PyArg_ParseTuple and Py_BuildValue question

2008-04-22 Thread Benjamin Peterson
On Wed, Apr 9, 2008 at 8:23 PM, Alvin Delagon <[EMAIL PROTECTED]> wrote: > > I'm going to construct an SS7 packet in python using struct.pack(). Here's > the question, how am I going to pass the packet I wrote in python to my > module and back? I already asked this question in comp.lang.python but

[Python-Dev] PyArg_ParseTuple and Py_BuildValue question

2008-04-22 Thread Alvin Delagon
Hello fellow pythonistas, I'm currently writing a simple python SCTP module in C. So far it works sending and receiving strings from it. The C sctp function sctp_sendmsg() has been wrapped and my function looks like this: sendMessage(PyObject *self, PyObject *args) { const char *msg = ""; if