Directly converting Python to C using the C API

2009-12-03 Thread Emmanuel Bengio
,PyInt_FromLong(i))); } takes about 16 ms to run. Any thoughts? -- Emmanuel Bengio -- http://mail.python.org/mailman/listinfo/python-list

[issue6924] struct.unpack weird behavior with bi (byte then integer)

2009-09-16 Thread Emmanuel Bengio
New submission from Emmanuel Bengio beng...@gmail.com: Using the following command in Python 2.6.1: struct.unpack(BI,12345) Traceback (most recent call last): File pyshell#1, line 1, in module struct.unpack(BI,12345) error: unpack requires a string argument of length 8 I get this error