Staging
v0.5.1
https://github.com/python/cpython
Revision 0a5a5af9b6b47727c5ee3def4508dab312949075 authored by Larry Hastings on 02 August 2018, 09:18:47 UTC, committed by Larry Hastings on 02 August 2018, 09:18:47 UTC
1 parent 804d8b3
Raw File
Tip revision: 0a5a5af9b6b47727c5ee3def4508dab312949075 authored by Larry Hastings on 02 August 2018, 09:18:47 UTC
Version bump for 3.4.9 final.
Tip revision: 0a5a5af
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