config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_getopt.pyc

³ò
h”Rc@s°ddkZddklZddklZlZlZddkZed„Zei	i
dƒZedj	oei	d=neo	dGHneei
ddƒƒeei
ddƒƒed	eƒed
eƒeo	dGHneidd
gƒ\ZZeeƒeedjƒeiddgƒ\ZZeeƒeedjƒeiddgƒ\ZZeeƒeedjƒedeƒedeƒeddeƒeo	dGHneigddgƒ\ZZeed=gjƒeegjƒeigddgƒ\ZZeed>gjƒeegjƒeigdddgƒ\ZZeed?gjƒeegjƒeigddddgƒ\ZZeed@gjƒeedgjƒedeƒedeƒeo	dGHneigddggƒ\ZZeedAgjƒeegjƒeigdd
ggƒ\ZZeedBgjƒeegjƒeigddggƒ\ZZeedCgjƒeegjƒeigdd ddggƒ\ZZeedDgjƒeegjƒeigd!d"d#ggƒ\ZZeedEgjƒeegjƒed&eƒed'eƒddd(d)d*dd+ddd*d,d-gZeo	d.GHneied/d0d1gƒ\ZZeedFdGdHdIdJdKdLgjƒeed,d-gjƒed3eƒeo	d4GHndd,d(dd2d5gZeied6d7d8gƒ\ZZeedMdNdOdPgjƒeed,gjƒeied9d7d8gƒ\ZZeedQgjƒeed,d(dd2d5gjƒdei	d<eied6d7d8gƒ\ZZeedRgjƒeed,d(dd2d5gjƒedjoei	d=neei	d<d:Zhed;<ZddkZeeieeƒeo	d<GHndS(SiÿÿÿÿN(tGetoptError(tverifytverbosetrun_doctestcBs,y|dUWn|j
onX|‚dS(s{Executes a statement passed in teststr, and raises an exception
       (failure) if the expected exception is *not* raised.N((tteststrtexpectedtfailure((s,/usr/local/lib/python2.5/test/test_getopt.pytexpectException	s
tPOSIXLY_CORRECTs%Running tests on getopt.short_has_argtasa:s$tmp = getopt.short_has_arg('a', 'b')s#tmp = getopt.short_has_arg('a', '')s%Running tests on getopt.long_has_argstabcsabc=tabcds6has_arg, option = getopt.long_has_args('abc', ['def'])s1has_arg, option = getopt.long_has_args('abc', [])shas_arg, option = s-getopt.long_has_args('abc', ['abcd','abcde'])s!Running tests on getopt.do_shortss-atta1t1t2s0opts, args = getopt.do_shorts([], 'a1', 'a', [])s0opts, args = getopt.do_shorts([], 'a', 'a:', [])s Running tests on getopt.do_longss--abcsabc=1sabcd=s--abcdtabsfoo=42sfoo-barsfoo=s--foot42s6opts, args = getopt.do_longs([], 'abc=1', ['abc'], [])s5opts, args = getopt.do_longs([], 'abc', ['abc='], [])s-bs	--alpha=2s--betat3targ1targ2sRunning tests on getopt.getoptsa:bsalpha=tbetas--alphas=opts, args = getopt.getopt(cmdline, 'a:b', ['alpha', 'beta'])s"Running tests on getopt.gnu_getopts--beta=2sab:talphasbeta=s+ab:s#
Examples from the Library Reference:  Doc/lib/libgetopt.tex

An example using only Unix style options:


>>> import getopt
>>> args = '-a -b -cfoo -d bar a1 a2'.split()
>>> args
['-a', '-b', '-cfoo', '-d', 'bar', 'a1', 'a2']
>>> optlist, args = getopt.getopt(args, 'abc:d:')
>>> optlist
[('-a', ''), ('-b', ''), ('-c', 'foo'), ('-d', 'bar')]
>>> args
['a1', 'a2']

Using long option names is equally easy:


>>> s = '--condition=foo --testing --output-file abc.def -x a1 a2'
>>> args = s.split()
>>> args
['--condition=foo', '--testing', '--output-file', 'abc.def', '-x', 'a1', 'a2']
>>> optlist, args = getopt.getopt(args, 'x', [
...     'condition=', 'output-file=', 'testing'])
>>> optlist
[('--condition', 'foo'), ('--testing', ''), ('--output-file', 'abc.def'), ('-x', '')]
>>> args
['a1', 'a2']

t
libreftests,Module getopt: tests completed successfully.(s-aR(s-aR(s-aR(s-aR(s--abcR(s--abcR(s--abcdR(s--abcR(s--fooR(s-aR(s-bR(s--alphaR(s--betaR(s-aR(s-aR(s--betaR(s-aR(s-bR(s--alphaR(s--betaR(s-aR(s-aR(tgetoptRttest.test_supportRRRtostAssertionErrorRtenvirontgettold_posixly_correcttNonet
short_has_argt
long_has_argsthas_argtoptiont	do_shortstoptstargstdo_longstcmdlinet
gnu_getoptRt__test__tsystmodulest__name__(((s,/usr/local/lib/python2.5/test/test_getopt.pys<module>sÎ

	

	
	!$	!!!'$	!	!!
!

"

Man Man