Commit 9d928872 authored by Robert Bradshaw's avatar Robert Bradshaw

Force vtab lookup for optional arguments.

There doesn't seem to be a good way to get at the right vtab struct here...
parent ede3eb92
...@@ -5314,7 +5314,7 @@ class AttributeNode(ExprNode): ...@@ -5314,7 +5314,7 @@ class AttributeNode(ExprNode):
else: else:
# Create a temporary entry describing the C method # Create a temporary entry describing the C method
# as an ordinary function. # as an ordinary function.
if entry.func_cname: if entry.func_cname and not hasattr(entry.type, 'op_arg_struct'):
cname = entry.func_cname cname = entry.func_cname
# Fix self type. # Fix self type.
ctype = copy.copy(entry.type) ctype = copy.copy(entry.type)
......
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