Staging
v0.8.1
v0.8.1
Revision 4fbc0d8baa2126db4ace0c8a03c1773f01abdda6 authored by Georg Brandl on 13 November 2010, 13:25:40 UTC, committed by Georg Brandl on 13 November 2010, 13:25:40 UTC
1 parent 74ebd9e
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
Computing file changes ...