passing a socket to a subprocess in windows

2010-03-16 Thread Daniel Platz
Hello! I have a problem with passing a socket to a subprocess in windows. It works in Linux and for windows there is a workaround in the Python doc. However, this workaround does not work. It was already noted by other people and they Python issue tracker http://bugs.python.org/issue5879

Re: Manipulating pointers in C using ctypes

2010-01-10 Thread Daniel Platz
Thanks for valuable answers. Both solutions work and I understand my mistake. Best regards, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Manipulating pointers in C using ctypes

2010-01-08 Thread Daniel Platz
Hello! I have to ask a newbie question about manipulating pointers in C using ctypes. I have a C dll with two functions. The first one creates a pointer and returns it to python. The second one takes a pointer as an argument shows its address and the value at which it is pointing. This I have impl

Re: Pass multidimensional array (matrix) to c function using ctypes

2010-01-07 Thread Daniel Platz
Thanks a lot. This solves my problem and I understand now much better what is going on. Best regards, Daniel -- http://mail.python.org/mailman/listinfo/python-list

Pass multidimensional array (matrix) to c function using ctypes

2010-01-06 Thread Daniel Platz
Hello, I would like to pass a two dimensional array to C function in a dll. I use ctypes to call the function. I compile the dll with visual studio 2008 express and my C source code looks like this. #include #ifdef __cplusplus extern "C" { // only need to export C interface if //

Fast reading and unpacking of binary data (struct module)

2009-07-21 Thread Daniel Platz
Hi, I have a Python newbie question about reading data from a binary file. I have an huge binary file from an external program. I want to read and process the data in this file in a reasonable time. It turns out that the reading of the data itself and the processing do not need most of the time. H

Re: Package for fast plotting of many data points in Python?

2009-07-11 Thread Daniel Platz
Hi, thanks for your repleys. I have tried matplotlib but it is extremely slow. I think it is more optimized for good looking plots instead of speed. I do not know the Python bindings of gnuplot and Veusz. To clarify the issue again, by 25000 data points I mean 25000 pixels, i.e. corresponding (x,y