micropython

tests/call_func_uncertain.py

220:2fb8b284aba3
2009-05-23 Paul Boddie Added callable context vs. self argument validation in CheckFrame, plus a test which detects an attempt to fake the self argument with an incompatible instance.
     1 #!/usr/bin/env python     2      3 def f(a, b, c):     4     return c     5      6 g = f     7 x = g(1, c=3, b=2)     8      9 def g(a, c, b):    10     return c    11     12 y = g(1, c=3, b=2)    13     14 # vim: tabstop=4 expandtab shiftwidth=4