tests/class_method_alias.py | raw changeset files shortlog |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tests/class_method_alias.py Fri Jun 22 00:11:51 2012 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#!/usr/bin/env python 1.5 + 1.6 +class C: 1.7 + def f(self): 1.8 + return 1 1.9 + m = f 1.10 + 1.11 + def g(self): 1.12 + return 2 1.13 + n = g 1.14 + 1.15 +c = C() 1.16 +result_1 = c.m() 1.17 + 1.18 +# vim: tabstop=4 expandtab shiftwidth=4