It seems that Float(double v) constructor couldn't
be used when Delay loading in involved.
I think it is because the accept method use the
PyFloat_Check macro that use the global variable
PyFloat_Type.
I propose to replace:
virtual bool accepts (PyObject *pyob) const
{
return pyob && PyFloat_Check (pyob);
}
by:
virtual bool accepts (PyObject *pyob) const
{
return pyob && Py::_Float_Check (pyob);
}
In the same spirit of what have been done for Int.
at least it works well for me.
Vivian.
Logged In: YES
user_id=511447
The same kind of modifiction should probably be done for
get rid of PyLong_Check and PyComplex_Check.
Vivian.
Logged In: YES
user_id=28665
Fixed for Float, Long and Complex in the 5.3.0