move sections
[python/dscho.git] / Lib / test / doctest_aliases.py
blob1f33f83276f0bbc40649e3752e58190cba825a26
1 # Used by test_doctest.py.
3 class TwoNames:
4 '''f() and g() are two names for the same method'''
6 def f(self):
7 '''
8 >>> print TwoNames().f()
10 '''
11 return 'f'
13 g = f # define an alias for f