repo.or.cz
/
python.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
The silencing of DeprecationWarning was not taking -3 into consideration. Since
[python.git]
/
Lib
/
test
/
doctest_aliases.py
blob
1f33f83276f0bbc40649e3752e58190cba825a26
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