Staging
v0.5.1
https://github.com/python/cpython
Revision 268e1fbf215fb17e1ebed793190457dab6d182cf authored by Ned Deily on 17 June 2017, 08:48:35 UTC, committed by Ned Deily on 17 June 2017, 08:48:35 UTC
1 parent 8c5483e
Raw File
Tip revision: 268e1fbf215fb17e1ebed793190457dab6d182cf authored by Ned Deily on 17 June 2017, 08:48:35 UTC
Version bump to 3.6.2rc1
Tip revision: 268e1fb
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