[C++-sig] Re: exceptions and multiple modules

David Abrahams dave at boost-consulting.com
Wed Jul 23 13:36:56 CEST 2003

Ben Young <ben.young at transversal.com> writes:

> We also had to use this trick to import our boost-python wrapped library.
> I noticed Dave Abrahams thread on python-dev about libraries being able
> to specify their own dlopen flags for import. Did anything ever come of
> this Dave? 

Nope, it was unfortunately a wrong-headed idea, IMO.

> or do you think we (transversal) will have just have to keep a
> wrapper python script that knows how to do the import correctly?

I don't think using RTLD_GLOBAL for extension modules is a good idea
in general, and I'd encourage new users to find alternative
approaches.  If it's working for you, though, there's no need to

> Cheers
> Ben
> ---
> P.S If you want us on your list of projects using boost-python we would be
> happy to supply our details:
> Transversal is a company that produces
> Metafaq, an enterprise level, online, knowledge base management system.
> boost-python is used in an automated process to generate python bindings
> to our api which is exposed though multiple backends and frontends. This
> allows us to write quick tests and bespoke scripts to perform one off
> tasks without having to go through the full compilation cycle.


Dave Abrahams
Boost Consulting

More information about the Cplusplus-sig mailing list