On 11/20/2009 05:50 AM, Eilif Mueller wrote:
Hi,

I'm using boost.python to interface with some dynamically generated C++ code, 
employing some scipy.weave facilities to cache the results.  When I force a 
recompile and import, I get the following message:

RuntimeWarning: to-Python converter for __randint already registered; second 
conversion method ignored.

where __randint is the dynamically generated class.  As such, the changes to 
the code (__randint) are not represented in the newly imported module.

Is it possible to override this behaviour so that the new class replaces the 
registration for the old one?

I very much doubt that what you want is possible: All extension modules using boost.python share a single global 'registry' that holds type-conversion information. Thus it is impossible to have that loaded while a separate process is adding new entries to it.

(It's a global symbol that is seen by all DSOs. Having two DSOs provide that symbol, but with different content, is illegal.)

Regards,
        Stefan

--

      ...ich hab' noch einen Koffer in Berlin...

_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to