home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Maximum CD 2011 June
/
maximum-cd-2011-06.iso
/
DiscContents
/
LibO_3.3.1_Win_x86_install_multi.exe
/
libreoffice1.cab
/
doctest_aliases.py
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Python Source
|
2011-02-15
|
243 b
|
14 lines
# 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