Re: [C++-sig] From python converter for builtin types

2012-11-08 Thread jiangzuo...@gmail.com
I'm afraid of you can't, according to the code, it's implemented in builtin_converters.cpp: slot_rvalue_from_python(); Boost/Python using global registration only according type saw in C++, I don't known is it possible to overrides these.

[C++-sig] From python converter for builtin types

2012-11-08 Thread Holger Brandsmeier
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