1.1 --- a/tests/methods_unbound.py Sat Nov 26 01:25:26 2016 +0100
1.2 +++ b/tests/methods_unbound.py Sat Nov 26 13:33:49 2016 +0100
1.3 @@ -76,6 +76,7 @@
1.4 except UnboundMethodInvocation:
1.5 print "f(C, 1): Unbound method is not callable."
1.6
1.7 +print f(c, 1) # 1
1.8 fn = f(C, 0)
1.9
1.10 try:
2.1 --- a/translator.py Sat Nov 26 01:25:26 2016 +0100
2.2 +++ b/translator.py Sat Nov 26 13:33:49 2016 +0100
2.3 @@ -1073,8 +1073,8 @@
2.4 if target:
2.5 stages.append(target)
2.6 elif function:
2.7 - stages.append("__load_via_object(&%s, %s).fn" % (
2.8 - encode_path(function), encode_symbol("pos", "__fn__")))
2.9 + stages.append("__load_via_object(__tmp_targets[%d].value, %s).fn" % (
2.10 + self.function_target, encode_symbol("pos", "__fn__")))
2.11
2.12 # With a known target, the function is obtained directly and called.
2.13