Boost C++ Libraries: Ticket #8675: numpy integers not accepted by Boost.Python https://svn.boost.org/trac10/ticket/8675 <p> When I pass a numpy integer (or really any object that's not exactly a <a class="missing wiki">PyIntObject</a>) to a BPL-wrapped function, I get errors like the following: </p> <pre class="wiki">ArgumentError: Python argument types in CLAllocator.__call__(CLAllocator, numpy.int64) did not match C++ signature: __call__((anonymous namespace)::cl_allocator {lvalue}, unsigned long) </pre><p> It would be great if, instead of checking for exact types, Boost.Python could use obj.<span class="underline">index</span>() or obj.<span class="underline">int</span>() to just get the integer value. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8675 Trac 1.4.3