On Sun, Feb 7, 2016 at 12:01 AM, Nathaniel Smith <n...@pobox.com> wrote: > 2) if I ever embed cpython by doing dlopen("libpython2.7.so.1"), or > dlopen("some_plugin_library_linked_to_libpython.so"), then the > embedded cpython will not be able to load python extensions that are > compiled in the Debian-style (but will be able to load python > extensions compiled in the Fedora-style), because the dlopen() the > loaded the python runtime and the dlopen() that loads the extension > module create two different scopes that can't see each other's > symbols. [I'm pretty sure this is right, but linking is arcane and > probably I should write some tests to double check.]
Just to confirm, I did test this, and it is correct. Code at https://github.com/njsmith/test-link-namespaces if anyone is curious. -- Nathaniel J. Smith -- https://vorpus.org _______________________________________________ Distutils-SIG maillist - Distutils-SIG@python.org https://mail.python.org/mailman/listinfo/distutils-sig