Lichen

tests/keyword_args_bad.py

1027:dd0745ab8b8a
5 months ago Paul Boddie Reordered GCC arguments to prevent linking failures. Someone decided to change the GCC invocation or linking semantics at some point, meaning that libraries specified "too early" in the argument list no longer provide the symbols required by the program objects, whereas specifying them at the end of the argument list allows those symbols to be found and obtained.
     1 class C:     2     def f(self, x, y, z):     3         return z     4      5 class D:     6     def f(self, a, b, c):     7         return c     8      9 def pqr(obj):    10     return obj.f(1, 2, r=3)     # no corresponding function    11     12 c = C()    13 d = D()    14     15 print pqr(c)                    # should fail