merge heads

This commit is contained in:
Andrew Svetlov 2012-11-29 19:52:21 +02:00
commit 07d126f0de
1 changed files with 11 additions and 0 deletions

View File

@ -237,6 +237,17 @@ around for backward compatibility:
using shared libraries is highly system dependent, and not all systems support using shared libraries is highly system dependent, and not all systems support
it.) it.)
.. impl-detail::
The import internals identify extension modules by filename, so doing
``foo = load_dynamic("foo", "mod.so")`` and
``bar = load_dynamic("bar", "mod.so")`` will result in both foo and bar
referring to the same module, regardless of whether or not
``mod.so`` exports an ``initbar`` function. On systems which
support them, symlinks can be used to import multiple modules from
the same shared library, as each reference to the module will use
a different file name.
.. function:: load_source(name, pathname[, file]) .. function:: load_source(name, pathname[, file])