Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Doc/library/imp.rst

    r2 r391  
    6666
    6767   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*, use
     68   dots).  In order to find *P.M*, that is, submodule *M* of package *P*, use
    6969   :func:`find_module` and :func:`load_module` to find and load package *P*, and
    7070   then use :func:`find_module` with the *path* argument set to ``P.__path__``.
     
    117117
    118118   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.
    121120
    122121   Once a thread has acquired the import lock, the same thread may acquire it
     
    239238   it.)
    240239
     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
    241251
    242252.. function:: load_source(name, pathname[, file])
Note: See TracChangeset for help on using the changeset viewer.