blob: 30cefafa83e30d4c05223f5e322e3051ed547a71 [file] [log] [blame]
Tim Petersf3f57472004-08-08 06:11:48 +00001# Used by test_doctest.py.
2
3class TwoNames:
4 '''f() and g() are two names for the same method'''
5
6 def f(self):
7 '''
Guido van Rossum7131f842007-02-09 20:13:25 +00008 >>> print(TwoNames().f())
Tim Petersf3f57472004-08-08 06:11:48 +00009 f
10 '''
11 return 'f'
12
Benjamin Peterson78565b22009-06-28 19:19:51 +000013 g = f # define an alias for f