blob: 1f33f83276f0bbc40649e3752e58190cba825a26 [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 '''
8 >>> print TwoNames().f()
9 f
10 '''
11 return 'f'
12
Amaury Forgeot d'Arcf81ff982009-06-14 21:20:40 +000013 g = f # define an alias for f