Staging
v0.8.1
Revision cd0dc16fdc60860bb69be020518234c0e897a1fb authored by Georg Brandl on 09 July 2011, 06:56:21 UTC, committed by Georg Brandl on 09 July 2011, 06:56:21 UTC
1 parent 9163c47
Raw File
doctest_aliases.py
# 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
back to top