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
e603864b
Commit
e603864b
authored
Feb 09, 2014
by
Nick Coghlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Note the new debug assertion in PyObject_Str
parent
df91140c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
Doc/c-api/object.rst
Doc/c-api/object.rst
+4
-0
Doc/whatsnew/3.4.rst
Doc/whatsnew/3.4.rst
+7
-0
No files found.
Doc/c-api/object.rst
View file @
e603864b
...
...
@@ -170,6 +170,10 @@ Object Protocol
Python expression ``str(o)``. Called by the :func:`str` built-in function
and, therefore, by the :func:`print` function.
.. versionchanged:: 3.4
This function now includes a debug assertion that ensures it does not
silently discard an active exception.
.. c:function:: PyObject* PyObject_Bytes(PyObject *o)
.. index:: builtin: bytes
...
...
Doc/whatsnew/3.4.rst
View file @
e603864b
...
...
@@ -1708,6 +1708,13 @@ Changes in the Python API
Changes in the C API
--------------------
* :c:func:`PyObject_Str` now includes a debug assertion that ensures it will
no longer silently discard currently active exceptions. In cases where
discarding the active exception is expected and desired (for example,
because it has already been saved locally with :c:func:`PyErr_Fetch`), an
explicit :c:func:`PyErr_Clear` call will be needed to avoid triggering the
assertion.
* :c:func:`PyErr_SetImportError` now sets :exc:`TypeError` when its **msg**
argument is not set. Previously only ``NULL`` was returned with no exception
set.
...
...
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