projects
/
OpenSPARC-T2-SAM
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM]
/
sam-t2
/
devtools
/
v9
/
lib
/
python2.4
/
test
/
doctest_aliases.py
Commit
Line
Data
920dae64
AT
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