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
8651295c
Commit
8651295c
authored
Jan 20, 2021
by
Xavier Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve 'recover' implementation
parent
38323671
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+4
-9
No files found.
Cython/Compiler/ExprNodes.py
View file @
8651295c
...
@@ -11399,16 +11399,11 @@ class RecoverNode(ExprNode):
...
@@ -11399,16 +11399,11 @@ class RecoverNode(ExprNode):
error
(
self
.
pos
,
"Can only recover cypclass (not '%s')"
%
operand_type
)
error
(
self
.
pos
,
"Can only recover cypclass (not '%s')"
%
operand_type
)
self
.
type
=
PyrexTypes
.
error_type
self
.
type
=
PyrexTypes
.
error_type
return
self
return
self
if
operand_type
.
is_qualified_cyp_class
:
self
.
generate_runtime_check
=
operand_type
.
qualifier
not
in
(
'iso'
,
'iso~'
)
self
.
generate_runtime_check
=
operand_type
.
qualifier
not
in
(
'iso'
,
'iso~'
)
self
.
check_refcount_only
=
operand_type
.
qualifier
in
(
'active'
,
'lock'
,
'locked'
)
self
.
check_refcount_only
=
operand_type
.
qualifier
in
(
'active'
,
'lock'
,
'locked'
)
if
operand_type
.
qualifier
==
'iso~'
:
if
operand_type
.
qualifier
==
'iso~'
:
self
.
type
=
operand_type
self
.
type
=
operand_type
else
:
self
.
type
=
PyrexTypes
.
cyp_class_qualified_type
(
operand_type
.
qual_base_type
,
'iso~'
)
else
:
else
:
self
.
generate_runtime_check
=
True
self
.
check_refcount_only
=
False
self
.
type
=
PyrexTypes
.
cyp_class_qualified_type
(
operand_type
,
'iso~'
)
self
.
type
=
PyrexTypes
.
cyp_class_qualified_type
(
operand_type
,
'iso~'
)
solid_operand
=
self
.
operand
solid_operand
=
self
.
operand
while
isinstance
(
solid_operand
,
TypecastNode
)
and
not
solid_operand
.
is_temp
:
while
isinstance
(
solid_operand
,
TypecastNode
)
and
not
solid_operand
.
is_temp
:
...
...
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