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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
77336058
Commit
77336058
authored
Feb 02, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actual conversion on <type> casts with one side Python
parent
bdde3d8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+5
-0
No files found.
Cython/Compiler/ExprNodes.py
View file @
77336058
...
@@ -2608,6 +2608,11 @@ class TypecastNode(ExprNode):
...
@@ -2608,6 +2608,11 @@ class TypecastNode(ExprNode):
if
to_py
and
not
from_py
:
if
to_py
and
not
from_py
:
self
.
result_ctype
=
py_object_type
self
.
result_ctype
=
py_object_type
self
.
is_temp
=
1
self
.
is_temp
=
1
if
self
.
operand
.
type
.
to_py_function
:
self
.
operand
=
self
.
operand
.
coerce_to_pyobject
(
env
)
elif
from_py
and
not
to_py
:
if
self
.
type
.
from_py_function
:
self
.
operand
=
self
.
operand
.
coerce_to
(
self
.
type
,
env
)
def
check_const
(
self
):
def
check_const
(
self
):
self
.
operand
.
check_const
()
self
.
operand
.
check_const
()
...
...
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