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
Xavier Thompson
cython
Commits
5e2dc4f7
Commit
5e2dc4f7
authored
Jul 15, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix performance regression in exception tracebacks.
See #1719.
parent
85a2dfe7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
Cython/Utility/Exceptions.c
Cython/Utility/Exceptions.c
+11
-2
No files found.
Cython/Utility/Exceptions.c
View file @
5e2dc4f7
...
...
@@ -603,10 +603,19 @@ static void __Pyx_AddTraceback(const char *funcname, int c_line,
PyObject
*
use_cline
=
0
;
PyObject
*
ptype
,
*
pvalue
,
*
ptraceback
;
static
PyObject
*
cline_in_traceback
=
NULL
;
if
(
cline_in_traceback
==
NULL
)
{
cline_in_traceback
=
PyString_InternFromString
(
"cline_in_traceback"
);
}
if
(
c_line
)
{
PyErr_Fetch
(
&
ptype
,
&
pvalue
,
&
ptraceback
);
use_cline
=
PyObject_GetAttrString
(
$
{
cython_runtime_cname
},
"cline_in_traceback"
);
if
(
use_cline
==
NULL
||
PyObject_Not
(
use_cline
)
!=
0
)
{
use_cline
=
PyObject_GetAttr
(
$
{
cython_runtime_cname
},
cline_in_traceback
);
if
(
use_cline
==
NULL
)
{
c_line
=
0
;
PyObject_SetAttr
(
$
{
cython_runtime_cname
},
cline_in_traceback
,
Py_False
);
}
else
if
(
PyObject_Not
(
use_cline
)
!=
0
)
{
c_line
=
0
;
}
PyErr_Restore
(
ptype
,
pvalue
,
ptraceback
);
...
...
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