Re: Converting C++ array into Python

2005-10-12 Thread Larry Bates
Yes, I'm normally calling .DLL function with a defined API and memory layout. May not be optimal, when you don't have the C code available and the data structure is part of the API it works just fine. -Larry Bates Jorgen Grahn wrote: > On Wed, 12 Oct 2005 11:13:52 -0500, Larry Bates <[EMAIL PROT

Re: Converting C++ array into Python

2005-10-12 Thread Jorgen Grahn
On Wed, 12 Oct 2005 11:13:52 -0500, Larry Bates <[EMAIL PROTECTED]> wrote: > Like others, without more information on what you have tried we are > just guessing. Many times I've used the struct.unpack() module to > unpack C "arrays" into python objects. In that case, it sounds like you make yours

Re: Converting C++ array into Python

2005-10-12 Thread Larry Bates
Like others, without more information on what you have tried we are just guessing. Many times I've used the struct.unpack() module to unpack C "arrays" into python objects. Don't know if this will help, but thought I'd pass it along. Post some code and we can help more. -Larry Bates Adriaan Re

Re: Converting C++ array into Python

2005-10-12 Thread Adriaan Renting
try using SWIG? You give very little information about how you are trying to accomplish this. From your mention of C++ you seem to mean a vector, not an array, I suggest you read the documentation of SWIG, and maybe someone can help you if you give a clear example of what you are trying to accom

Converting C++ array into Python

2005-10-03 Thread Deshdeep, Singh (IE10)
I am extending C++ application with python. I am not able to convert a C++ array in Python.   If anyone has the experience of the below :- 1)   How to handle the C++ array in the Python code and how to input that from the script ?   Awaiting for the solution   Regards DD