Re: PyArg_ParseTuple for structs or binary data

2008-04-10 Thread Alvin Delagon
, &len)) return NULL; ret = sctp_sendmsg(connSock, msg, len, 0, 0, 0x0300, 0, 0x01, 0, 0); return Py_BuildValue("l", ret); } Alvin Delagon -- http://mail.python.org/mailman/listinfo/python-list

Re: PyArg_ParseTuple for structs or binary data

2008-04-10 Thread Alvin Delagon
, &len)) return NULL; ret = sctp_sendmsg(connSock, msg, len, 0, 0, 0x0300, 0, 0x01, 0, 0); return Py_BuildValue("l", ret); } --- Alvin Delagon -- http://mail.python.org/mailman/listinfo/python-list

PyArg_ParseTuple for structs or binary data

2008-04-09 Thread Alvin Delagon
ct 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? Thanks in advance! :) --- Alvin Delagon -- http://mail.python.org/mailman/listinfo/python-list

Re: python hash() function

2008-03-25 Thread Alvin Delagon
Thanks for the fast replies guys. Very much appreciated. :) --- Alvin -- http://mail.python.org/mailman/listinfo/python-list

python hash() function

2008-03-25 Thread Alvin Delagon
Hello, >>> hash("foobar") -1969371895 Anyone can explain to me how the hash() function in python does its work? A link to its source could help me a lot also. I'm looking for a way to replicate this function in php. Thanks in advance. --- Alvin -- http://mail.python.org/mailman/listinfo/python

Re: sizeof() in python

2007-06-19 Thread Alvin Delagon
Thanks for the reply, yes you're right I just realized it sooner. -- http://mail.python.org/mailman/listinfo/python-list

sizeof() in python

2007-06-18 Thread Alvin Delagon
Quick question: Is there a way to know the size of data in python? Like a sizeof feature in C? I need this because I have to make a python application that will send packets at 1-2 kilobytes/sec via UDP. Thank you in advance guys. -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb and mod_python issue (Steve Holden)

2006-09-27 Thread Alvin Delagon
Thanks for the reply. Fixing it seems a tedious task. I opted in rewriting the application to a HTTPServer and is working now. I've noticed this problem on CentOS 4 I might as well report to them the possible version conflict. -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb and mod_python issue

2006-09-26 Thread Alvin Delagon
I have a mod_python script that is always crash while connecting to mysql server. Here's a dump of the apache error log:[Wed Sep 27 13:27:42 2006] [notice] mod_python: (Re)importing module 'test' with path set to '['/var/www/html/XBox2']' [Wed Sep 27 13:27:42 2006] [notice] child pid 27793 exit sig