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
7598e18b
Commit
7598e18b
authored
Sep 20, 2012
by
Ezio Melotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rst markup.
parent
f6813f60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Doc/c-api/import.rst
Doc/c-api/import.rst
+1
-1
Doc/whatsnew/3.3.rst
Doc/whatsnew/3.3.rst
+3
-3
No files found.
Doc/c-api/import.rst
View file @
7598e18b
...
...
@@ -76,7 +76,7 @@ Importing Modules
UTF-8 encoded string instead of a Unicode object.
.. versionchanged:: 3.3
Negative values for *
*level*
* are no longer accepted.
Negative values for *
level
* are no longer accepted.
.. c:function:: PyObject* PyImport_Import(PyObject *name)
...
...
Doc/whatsnew/3.3.rst
View file @
7598e18b
...
...
@@ -1928,7 +1928,7 @@ Porting Python code
updated
to
use
the
full
name
of
the
module
instead
of
just
the
tail
of
the
name
.
*
The
*
*
index
*
*
argument
to
:
func
:`
__import__
`
now
defaults
to
0
instead
of
-
1
*
The
*
index
*
argument
to
:
func
:`
__import__
`
now
defaults
to
0
instead
of
-
1
and
no
longer
support
negative
values
.
It
was
an
oversight
when
:
pep
:`
328
`
was
implemented
that
the
default
value
remained
-
1.
If
you
need
to
continue
to
perform
a
relative
import
followed
by
an
absolute
import
,
then
perform
the
...
...
@@ -1996,9 +1996,9 @@ Porting C code
* :c:func:`PyImport_GetMagicNumber` now returns -1 upon failure.
* As a negative value for the *
*level*
* argument to :func:`__import__` is no
* As a negative value for the *
level
* argument to :func:`__import__` is no
longer valid, the same now holds for :c:func:`PyImport_ImportModuleLevel`.
This also means that the value of *
*level*
* used by
This also means that the value of *
level
* used by
:c:func:`PyImport_ImportModuleEx` is now 0 instead of -1.
...
...
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