cpython: 94de77bd0b4b (original) (raw)
Mercurial > cpython
changeset 80661:94de77bd0b4b 2.7
Issue #16194: document imp.load_dynamic problems when read several extension modules from the same binary object file. [#16194]
Andrew Svetlov andrew.svetlov@gmail.com | |
---|---|
date | Thu, 29 Nov 2012 19:51:28 +0200 |
parents | ea4bdf5a2e69 |
children | 40b71097d255 |
files | Doc/library/imp.rst |
diffstat | 1 files changed, 11 insertions(+), 0 deletions(-)[+] [-] Doc/library/imp.rst 11 |
line wrap: on
line diff
--- a/Doc/library/imp.rst +++ b/Doc/library/imp.rst @@ -237,6 +237,17 @@ around for backward compatibility: using shared libraries is highly system dependent, and not all systems support it.)
- .. impl-detail:: +
- The import internals identify extension modules by filename, so doing
foo = load_dynamic("foo", "mod.so")
andbar = 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 aninitbar
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.