Staging
v0.8.1
Revision 841f7ed05224bb54f0a3d943dd5168044ba49bc6 authored by Barry Warsaw on 16 August 2010, 22:58:03 UTC, committed by Barry Warsaw on 16 August 2010, 22:58:03 UTC
1 parent 69e266c
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