[Numpy-discussion] Add pybind11 to docs about writing binding code (original) (raw)

Chris Barker chris.barker at noaa.gov
Mon Aug 20 13:17:49 EDT 2018


On Mon, Aug 20, 2018 at 8:57 AM, Neal Becker <ndbecker2 at gmail.com> wrote:

I'm confused, do you have a link or example showing how to use xtensor-python without pybind11?

I think you may have it backwards:

""" The Python bindings for xtensor are based on the pybind11 C++ library, which enables seemless interoperability between C++ and Python. """

So no, yu can't use xtenson-python without pybind11 -- I think what was suggested was that you could use xtenson-python without using xtenson on the C++ side. i.e. xtensor-python is a higher level binding system than pybind11 alone, rather than just bindings for xtensor. And thus belongs in the docs about binding tools.

Which makes me want to take a closer look at it...

-CHB

--

Christopher Barker, Ph.D. Oceanographer

Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker at noaa.gov -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20180820/2509938c/attachment.html>



More information about the NumPy-Discussion mailing list