Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 64d22b6

Browse files
committed
restrict enforced temp coercion in normal assignments to Python objects
1 parent e995622 commit 64d22b6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Cython/Compiler/Nodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4469,7 +4469,7 @@ def analyse_types(self, env, use_temp = 0):
44694469
if use_temp or self.rhs.is_attribute:
44704470
# (cdef) attribute access is not safe as it traverses pointers
44714471
self.rhs = self.rhs.coerce_to_temp(env)
4472-
else:
4472+
elif self.rhs.type.is_pyobject:
44734473
self.rhs = self.rhs.coerce_to_simple(env)
44744474

44754475
def generate_rhs_evaluation_code(self, code):

0 commit comments

Comments
 (0)