changeset 0 | ae805ac0140d |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-2.5.2/win32/Lib/test/doctest_aliases.py Fri Apr 03 17:19:34 2009 +0100 @@ -0,0 +1,13 @@ +# Used by test_doctest.py. + +class TwoNames: + '''f() and g() are two names for the same method''' + + def f(self): + ''' + >>> print TwoNames().f() + f + ''' + return 'f' + + g = f # define an alias for f