Tim Peters | f3f5747 | 2004-08-08 06:11:48 +0000 | [diff] [blame] | 1 | # Used by test_doctest.py. |
2 | |||||
3 | class TwoNames: | ||||
4 | '''f() and g() are two names for the same method''' | ||||
5 | |||||
6 | def f(self): | ||||
7 | ''' | ||||
Guido van Rossum | 7131f84 | 2007-02-09 20:13:25 +0000 | [diff] [blame] | 8 | >>> print(TwoNames().f()) |
Tim Peters | f3f5747 | 2004-08-08 06:11:48 +0000 | [diff] [blame] | 9 | f |
10 | ''' | ||||
11 | return 'f' | ||||
12 | |||||
Benjamin Peterson | 78565b2 | 2009-06-28 19:19:51 +0000 | [diff] [blame] | 13 | g = f # define an alias for f |