Commit 1f3995a3 authored by Robert Bradshaw's avatar Robert Bradshaw

One more side effect we want to avoid in argument ordering.

parent 79dd6edd
...@@ -3043,6 +3043,9 @@ class SimpleCallNode(CallNode): ...@@ -3043,6 +3043,9 @@ class SimpleCallNode(CallNode):
or arg.entry.type.is_cfunction): or arg.entry.type.is_cfunction):
# local variables and C functions are safe # local variables and C functions are safe
pass pass
elif arg.type.is_cpp_class:
# Assignment has side effects, avoid.
pass
elif env.nogil and arg.type.is_pyobject: 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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment