Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
652f2195
Commit
652f2195
authored
Apr 05, 2017
by
Jeroen Demeyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add declaration for PyImport_ImportModuleLevel
parent
bd0bd943
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
Cython/Includes/cpython/module.pxd
Cython/Includes/cpython/module.pxd
+13
-0
No files found.
Cython/Includes/cpython/module.pxd
View file @
652f2195
...
...
@@ -35,6 +35,19 @@ cdef extern from "Python.h":
# unless a non-empty fromlist was given. Changed in version 2.4:
# failing imports remove incomplete module objects.
object
PyImport_ImportModuleLevel
(
char
*
name
,
object
globals
,
object
locals
,
object
fromlist
,
int
level
)
# Return value: New reference.
# Import a module. This is best described by referring to the
# built-in Python function __import__(), as the standard
# __import__() function calls this function directly.
# The return value is a new reference to the imported module or
# top-level package, or NULL with an exception set on failure. Like
# for __import__(), the return value when a submodule of a package
# was requested is normally the top-level package, unless a
# non-empty fromlist was given.
object
PyImport_Import
(
object
name
)
# Return value: New reference.
# This is a higher-level interface that calls the current ``import
...
...
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