Commit d3e89c97 authored by Stefan Behnel's avatar Stefan Behnel

don't allow pointer assignments to Python variables (except for char*)

parent e8aa2fe4
......@@ -336,7 +336,8 @@ class PyObjectType(PyrexType):
return "<PyObjectType>"
def assignable_from(self, src_type):
return 1 # Conversion will be attempted
# except for pointers, conversion will be attempted
return not src_type.is_ptr or src_type.is_string
def declaration_code(self, entity_code,
for_display = 0, dll_linkage = None, pyrex = 0):
......
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