Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5

Fabien fabien.maussion at gmail.com
Mon May 23 05:27:59 EDT 2016


On 05/23/2016 05:15 AM, Siyi Deng wrote:
> I have a dynamic library doing some numerical computations.
> I used ctypes to interact it by passing numpy arrays back and forth.
> Python 3.5 gives me the correct results.
> Python 2.7 gives me different, erroneous results, but it never crashes.
> How is this possible? There is no string operations involved whatsoever.

You might be more successful if you describe your problem in more detail 
(maybe with a minimal working example?) and if you ask the scipy/numpy 
people: https://www.scipy.org/scipylib/mailing-lists.html

Cheers



More information about the Python-list mailing list