☰
Debian Codegraph
@
3.14.7-4
3.14.7-3
3.14.7-1
3.14.6-1
3.14.5-1
/
/
Lib
/
test
/
test_doctest
/
doctest_aliases.py
☽
☼
Lib/test/test_doctest/doctest_aliases.py
code
plain
raw
1
# Used by test_doctest.py.
2
3
class TwoNames:
4
'''f() and g() are two names for the same method'''
5
6
def f(self):
7
'''
8
>>> print(TwoNames().f())
9
f
10
'''
11
return 'f'
12
13
g = f # define an alias for f