[C++-sig] Re: to_python_converter error question ...

David Abrahams dave at boost-consulting.com
Thu Sep 11 16:42:27 CEST 2003


Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:

> When I try to import a module I made, I have the error :
>
> RuntimeError: trying to register to_python_converter for a type which
> already has a registered to_python_converter
>
> But when I re-import it, it just works ... is it normal ??? Then
> another question : how to know which converter is duplicated ?
> Is it possible to trace what python do when importing ?

Please try the enclosed patch and let me know how it works out

-------------- next part --------------
A non-text attachment was scrubbed...
Name: registry.patch
Type: text/x-patch
Size: 1201 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/cplusplus-sig/attachments/20030911/388e0f15/attachment.bin>
-------------- next part --------------

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com


More information about the Cplusplus-sig mailing list