[C++-sig] [boost python] : how to pass a tuple of lists from python to C++
Stefan Seefeld
stefan at seefeld.name
Sat Feb 8 23:04:08 EST 2020
On 2020-02-08 12:07 p.m., HOUSSEN Franck wrote:
> I tried to play with extract::check() without much success : line 13
> crashes !?...
> This is a very simple exemple : would like to get it to work. Could
> somebody help ? Still googling / searching for a solution
You need to call np::initialize() in your module, i.e. insert
`np::initialize();`
at the top of your `dummy` module definition.
Stefan
--
...ich hab' noch einen Koffer in Berlin...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20200208/58f8cf38/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .signature.png
Type: image/png
Size: 2754 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20200208/58f8cf38/attachment.png>
More information about the Cplusplus-sig
mailing list