I'm afraid of you can't, according to the code, it's implemented in
builtin_converters.cpp:
slot_rvalue_from_python<long double,float_rvalue_from_python>();
Boost/Python using global registration only according type saw in C++, I
don't known is it possible to overrides these.
Changsheng Jiang
On Thu, Nov 8, 2012 at 7:23 PM, Holger Brandsmeier <[email protected]>wrote:
> Dear list,
>
> where does boost python define the from python converters for buildin
> types such as double / PyLong_Type?
>
> With the help of Changsheng Jiang I was able to modify
> builtin_converters.hpp and was able to change a to python converter
> for long double to produce numpy.float128. I do not find the place
> where the from python conversion is done, though.
>
> -Holger
> _______________________________________________
> Cplusplus-sig mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
[email protected]
http://mail.python.org/mailman/listinfo/cplusplus-sig