Is there any way to extract a vector of floats from a python array?
In Python, can I write something like:
from array import array
from bpclass import foo
vec = array('f', (1,2,3))
foo ([vec])
And, in C++:
void bpclass::foo (list v) {
... extract< {magic} >(v[0]) ...
Or would it b
On Sunday 11 October 2009 19:44:29 troy d. straszheim wrote:
> > Why is the overloaded get_signature not picked up when it is declared
> > after the inclusion of the headers?
>
> I'm not sure why it isn't picked up.
Does that mean that you can reproduce the problem I pointed out?
> I've been wo
Ravi wrote:
[snip]
In order to use a function object in place of a free function, one must
specialize/overload
boost::python::detail::get_signature
which, for some reason, does not account for function objects. Here's a very
simple example that works:
[snip]
However, note that the over