[C++-sig] registering the same type converter in different modules with Boost.Python

2010-08-29 Thread Changsheng Jiang
Hi, list I have to convert std::pair to python tuple in different modules independently. And these modules may be used concurrently, importing the second module will report an warning like "std::pair has been already registered". How to fixed the warning and registered the same type in different

Re: [C++-sig] registering the same type converter in different modules with Boost.Python

2010-08-29 Thread Ralf W. Grosse-Kunstleve
> I have to convert std::pair to python tuple in different modules >independently. > And these modules may be used concurrently, importing the second module > will report an warning like "std::pair has been already registered". A simple and clean approach is to have another basic module that d