Changeset 391 for python/trunk/Doc/library/imp.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/imp.rst
r2 r391 66 66 67 67 This function does not handle hierarchical module names (names containing 68 dots). In order to find *P *.*M*, that is, submodule *M* of package *P*, use68 dots). In order to find *P.M*, that is, submodule *M* of package *P*, use 69 69 :func:`find_module` and :func:`load_module` to find and load package *P*, and 70 70 then use :func:`find_module` with the *path* argument set to ``P.__path__``. … … 117 117 118 118 Acquire the interpreter's import lock for the current thread. This lock should 119 be used by import hooks to ensure thread-safety when importing modules. On 120 platforms without threads, this function does nothing. 119 be used by import hooks to ensure thread-safety when importing modules. 121 120 122 121 Once a thread has acquired the import lock, the same thread may acquire it … … 239 238 it.) 240 239 240 .. impl-detail:: 241 242 The import internals identify extension modules by filename, so doing 243 ``foo = load_dynamic("foo", "mod.so")`` and 244 ``bar = load_dynamic("bar", "mod.so")`` will result in both foo and bar 245 referring to the same module, regardless of whether or not 246 ``mod.so`` exports an ``initbar`` function. On systems which 247 support them, symlinks can be used to import multiple modules from 248 the same shared library, as each reference to the module will use 249 a different file name. 250 241 251 242 252 .. function:: load_source(name, pathname[, file])
Note:
See TracChangeset
for help on using the changeset viewer.