. , . , / , .
. , , , , . , , . , , .
, , , . . / , . - , x, , , , a, b d . - f, , - k, -. -foo, , .
, , . , .
, python. .
python . , , , , . , - , . , , , .
, - , , self . .
$ python -m timeit -s 'class Foo():' -s ' def p(self):' -s ' pass' -s 'foo = Foo()' 'foo.p()'
10000000 loops, best of 3: 0.158 usec per loop
$ python -m timeit -s 'class Foo():' -s ' def p(self):' -s ' pass' -s 'foo = Foo()' -s 'p=foo.p' 'p()'
10000000 loops, best of 3: 0.0984 usec per loop
$ python -m timeit -s 'def p():' -s ' pass' 'p()'
10000000 loops, best of 3: 0.0846 usec per loop
; , , , .
, , /. , .
, , . , .