Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
07d126f0
Commit
07d126f0
authored
Nov 29, 2012
by
Andrew Svetlov
Browse files
Options
Browse Files
Download
Plain Diff
merge heads
parents
256aaf7b
6a5c2e64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
Doc/library/imp.rst
Doc/library/imp.rst
+11
-0
No files found.
Doc/library/imp.rst
View file @
07d126f0
...
@@ -237,6 +237,17 @@ around for backward compatibility:
...
@@ -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])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment