Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #109065

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

From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Subject Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5
Date 2016-05-25 02:26 +1000
Message-ID <mailman.59.1464107171.20402.python-list@python.org> (permalink)
References (1 earlier) <eaacbbbe-3013-484b-a916-943d1c9f97db@googlegroups.com> <CAPTjJmraVH=HLtV1GXec5Mqu+WR5U5sFAHCcNzcypBHy6a6eNw@mail.gmail.com> <mailman.48.1464075943.20402.python-list@python.org> <1837656f-ef9a-4bcf-8074-c9565dd8c59a@googlegroups.com> <CAPTjJmrixOp+B+hi7_+eOyNEBFnEKbq6Yu=Jj3tDCHGw+R4HVA@mail.gmail.com>

Show all headers | View raw


On Wed, May 25, 2016 at 2:18 AM, Siyi Deng <mr.siyi.deng@gmail.com> wrote:
> I don't quite understand, the binary shared library contains no python interfaces, it should be independent of python. As a matter of fact, I have successfully used it in Conda python 2.7, 3.5,  Julialang as well as c++ executables. I think the fact that only stock python 2.7 failed to run correctly indicates some bug in that python distribution.
>

Ah okay. Still, somehow you have to get the data from the numpy array
to the binary library; and that depends on the exact layout of the
Python object (including pointer sizes and stuff). So your ctypes
interface code might need to be adjusted.

ChrisA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Siyi Deng <mr.siyi.deng@gmail.com> - 2016-05-22 20:15 -0700
  Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Fabien <fabien.maussion@gmail.com> - 2016-05-23 11:27 +0200
  Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-05-23 20:29 +1000
  Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Siyi Deng <mr.siyi.deng@gmail.com> - 2016-05-24 00:15 -0700
    Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Chris Angelico <rosuav@gmail.com> - 2016-05-24 17:45 +1000
      Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Siyi Deng <mr.siyi.deng@gmail.com> - 2016-05-24 09:18 -0700
        Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Chris Angelico <rosuav@gmail.com> - 2016-05-25 02:26 +1000
        Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Steven D'Aprano <steve@pearwood.info> - 2016-05-25 02:32 +1000
          Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Chris Angelico <rosuav@gmail.com> - 2016-05-25 02:45 +1000
          Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Siyi Deng <mr.siyi.deng@gmail.com> - 2016-05-24 10:38 -0700
          Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2016-05-24 20:14 -0400
  Re: Interfacing a dynamic shared library gives me different results in 2.7 versus 3.5 Siyi Deng <mr.siyi.deng@gmail.com> - 2016-05-24 10:47 -0700

csiph-web