[C++-sig] Alignment problem when returning lists from C++ to Python
s_sourceforge at nedprod.com
Mon Jun 20 14:20:09 CEST 2011
You're going to have to give a lot more information than this for
anyone to help you. In particular, a highly reduced and short example
of code exhibiting the problem would be very helpful.
On 20 Jun 2011 at 2:20, charles75 wrote:
> OS: UBUNTU 11.04
> Could someone please help me out here.
> I'm using boost-python. I have written a C++ program that returns a list
> back to Python.
> The problem I'm having is that the returned data seems to be misaligned.
> When I run the C++ program on its own and print out the structure all seems
> However when I copy the structure into the list and return this to Python
> the data is corrupted, and I've been told
> that this is an alignment issue, but I can't find a way to resolve this
> Thanks in advance for any help.
> View this message in context: http://boost.2283326.n4.nabble.com/Alignment-problem-when-returning-lists-from-C-to-Python-tp3610860p3610860.html
> Sent from the Python - c++-sig mailing list archive at Nabble.com.
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
Technology & Consulting Services - ned Productions Limited.
http://www.nedproductions.biz/. VAT reg: IE 9708311Q. Company no:
More information about the Cplusplus-sig