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
04778a81
Commit
04778a81
authored
May 25, 2011
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make PyImport_ImportModuleLevel's first arg const like similiar functions (closes #12173)
parent
8a021009
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
Include/import.h
Include/import.h
+1
-1
Misc/NEWS
Misc/NEWS
+3
-0
Python/import.c
Python/import.c
+1
-1
No files found.
Include/import.h
View file @
04778a81
...
...
@@ -44,7 +44,7 @@ PyAPI_FUNC(PyObject *) PyImport_ImportModuleNoBlock(
const
char
*
name
/* UTF-8 encoded string */
);
PyAPI_FUNC
(
PyObject
*
)
PyImport_ImportModuleLevel
(
c
har
*
name
,
/* UTF-8 encoded string */
c
onst
char
*
name
,
/* UTF-8 encoded string */
PyObject
*
globals
,
PyObject
*
locals
,
PyObject
*
fromlist
,
...
...
Misc/NEWS
View file @
04778a81
...
...
@@ -826,6 +826,9 @@ C-API
-
PY_PATCHLEVEL_REVISION
has
been
removed
,
since
it
's meaningless with
Mercurial.
- Issue #12173: The first argument of PyImport_ImportModuleLevel is now `const
char *` instead of `char *1`.
Documentation
-------------
...
...
Python/import.c
View file @
04778a81
...
...
@@ -2818,7 +2818,7 @@ PyImport_ImportModuleLevelObject(PyObject *name, PyObject *globals,
}
PyObject
*
PyImport_ImportModuleLevel
(
char
*
name
,
PyObject
*
globals
,
PyObject
*
locals
,
PyImport_ImportModuleLevel
(
c
onst
c
har
*
name
,
PyObject
*
globals
,
PyObject
*
locals
,
PyObject
*
fromlist
,
int
level
)
{
PyObject
*
nameobj
,
*
mod
;
...
...
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