Python 3.x class bug using subclass fns

This commit is contained in:
rocky
2016-06-20 17:14:46 -04:00
parent 80cfe62f36
commit 59780483a8
5 changed files with 16 additions and 2 deletions

View File

@@ -400,9 +400,11 @@ class Python3Parser(PythonParser):
call_function))
self.add_unique_rule(rule, opname, token.attr, customize)
# Can the above build_class rule be folded into this rule?
# FIXME: What's the deal with the two rules? Different Python versions?
# Different situations? Note that the above rule is based on the CALL_FUNCTION
# token found, while this one doesn't.
rule = ("build_class ::= LOAD_BUILD_CLASS mkfunc expr call_function "
"CALL_FUNCTION_" + str(args_pos+1))
"CALL_FUNCTION_3")
self.add_unique_rule(rule, opname, token.attr, customize)
return