Staging
v0.8.1
Revision 9c1426de7521299f70eb5483e7e25d1c2a73dbbd authored by Benjamin Peterson on 17 December 2016, 20:00:35 UTC, committed by Benjamin Peterson on 17 December 2016, 20:00:35 UTC
1 parent 4403d50
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