I'm afraid of you can't, according to the code, it's implemented in builtin_converters.cpp:<div><br></div><div><div>    slot_rvalue_from_python<long double,float_rvalue_from_python>();</div></div><div><br>

</div><div>Boost/Python using global registration only according type saw in C++, I don't known is it possible to overrides these.</div><div class="gmail_extra"><br clear="all">                                                      Changsheng Jiang<br>


<br><br><div class="gmail_quote">On Thu, Nov 8, 2012 at 7:23 PM, Holger Brandsmeier <span dir="ltr"><<a href="mailto:brandsmeier@gmx.de" target="_blank">brandsmeier@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Dear list,<br>
<br>
where does boost python define the from python converters for buildin<br>
types such as double / PyLong_Type?<br>
<br>
With the help of Changsheng Jiang I was able to modify<br>
builtin_converters.hpp and was able to change a to python converter<br>
for long double to produce numpy.float128. I do not find the place<br>
where the from python conversion is done, though.<br>
<br>
-Holger<br>
_______________________________________________<br>
Cplusplus-sig mailing list<br>
<a href="mailto:Cplusplus-sig@python.org">Cplusplus-sig@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/cplusplus-sig" target="_blank">http://mail.python.org/mailman/listinfo/cplusplus-sig</a><br>
</blockquote></div><br></div>