FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cpython/Lib/test/doctest_aliases.py at master · python-emscripten/cpython · GitHub
python-emscripten
cpython
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cpython
/
Lib
/
test
/
doctest_aliases.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
13 lines (10 loc) · 240 Bytes
Breadcrumbs
cpython
/
Lib
/
test
/
doctest_aliases.py
Copy path
File metadata and controls
13 lines (10 loc) · 240 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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
|
FazBrowse Home
|
New Git URL