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
Gwenaël Samain
cython
Commits
746b968f
Commit
746b968f
authored
Jan 27, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak #654 fix, c functions can't be assinged to.
parent
e170c96d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Cython/Compiler/ExprNodes.py
Cython/Compiler/ExprNodes.py
+9
-4
No files found.
Cython/Compiler/ExprNodes.py
View file @
746b968f
...
@@ -2979,13 +2979,18 @@ class SimpleCallNode(CallNode):
...
@@ -2979,13 +2979,18 @@ class SimpleCallNode(CallNode):
# sure they are either all temps or all not temps
# sure they are either all temps or all not temps
for
i
in
range
(
min
(
max_nargs
,
actual_nargs
)):
for
i
in
range
(
min
(
max_nargs
,
actual_nargs
)):
arg
=
self
.
args
[
i
]
arg
=
self
.
args
[
i
]
# local variables are safe
if
arg
.
is_name
and
arg
.
entry
and
(
if
not
arg
.
is_name
or
arg
.
entry
and
(
not
arg
.
entry
.
is_local
or
arg
.
entry
.
in_closure
):
arg
.
entry
.
is_local
or
arg
.
entry
.
in_closure
or
arg
.
entry
.
type
.
is_cfunction
):
# local variables are safe
# TODO: what about the non-local keyword?
pass
elif
env
.
nogil
and
arg
.
type
.
is_pyobject
:
# can't copy a Python reference into a temp in nogil
# can't copy a Python reference into a temp in nogil
# env (this is safe: a construction would fail in
# env (this is safe: a construction would fail in
# nogil anyway)
# nogil anyway)
if
not
(
env
.
nogil
and
arg
.
type
.
is_pyobject
):
pass
self
.
args
[
i
]
=
arg
.
coerce_to_temp
(
env
)
else
:
self
.
args
[
i
]
=
arg
.
coerce_to_temp
(
env
)
for
i
in
range
(
max_nargs
,
actual_nargs
):
for
i
in
range
(
max_nargs
,
actual_nargs
):
arg
=
self
.
args
[
i
]
arg
=
self
.
args
[
i
]
if
arg
.
type
.
is_pyobject
:
if
arg
.
type
.
is_pyobject
:
...
...
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