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_peepholer.pyc

³ò
h”Rc@sddkZddkZddklZddkZd„Zd„Zdeifd„ƒYZdd„Z
edjoe
d	eƒndS(
iÿÿÿÿN(tStringIOcCsKtƒ}ti}|t_ti|ƒ|t_|iƒ}|iƒ|S(N(Rtsyststdouttdistgetvaluetclose(tfunctfttmptresult((s//usr/local/lib/python2.5/test/test_peepholer.pytdisassembles			
	
cCstt|ddƒƒS(Nttsingle(R
tcompile(tline((s//usr/local/lib/python2.5/test/test_peepholer.pyt
dis_singlest
TestTranformscBsYeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
RS(	cCsad„}t|ƒ}x!dD]}|i||jƒqWx!dD]}|i||jƒq@WdS(NcSs|djp~ndS(Ni((tx((s//usr/local/lib/python2.5/test/test_peepholer.pytunots
t	UNARY_NOTt
JUMP_IF_FALSEtJUMP_IF_TRUEtPOP_TOP(RR(RR(R
tassert_(tselfRtasmtelem((s//usr/local/lib/python2.5/test/test_peepholer.pyt	test_unots	cCsFx?d	d
ddfD]+\}}t|ƒ}|i||jƒqWdS(
Ns
not a is bs(is not)s
not a in bs(not in)snot a is not bs(is)snot a not in bs(in)(s
not a is bs(is not)(s
not a in bs(not in)(snot a is not bs(is)(snot a not in bs(in)(RR(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyttest_elim_inversion_of_is_or_in scCsœd„}t|ƒ}x!dD]}|i||jƒqWx!dD]}|i||jƒq@Wd„}|idt|ƒjƒ|idt|ƒjƒdS(NcSsd|S(N(tNone(R((s//usr/local/lib/python2.5/test/test_peepholer.pyR,stLOAD_GLOBALt
LOAD_CONSTs(None)cSsdS(s1Adding a docstring made this test fail in Py2.5.0N(R(((s//usr/local/lib/python2.5/test/test_peepholer.pyR4s(R(Rs(None)(R
R(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyttest_none_as_constant*s		cCsad„}t|ƒ}x!dD]}|i||jƒqWx!dD]}|i||jƒq@WdS(NcSs
xqtS(N(tlist(((s//usr/local/lib/python2.5/test/test_peepholer.pyR<sRRt
JUMP_ABSOLUTE(s
LOAD_CONSTs
JUMP_IF_FALSE(R"(R
R(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyttest_while_one:s	cCsixbd	d
dfD]Q\}}t|ƒ}|i||jƒ|id|jƒ|id|jƒqWdS(Nsa, = a,Rsa, b = a, btROT_TWOsa, b, c = a, b, ct	ROT_THREEtBUILD_TUPLEtUNPACK_TUPLE(sa, = a,s
LOAD_CONST(sa, b = a, bR$(sa, b, c = a, b, cR%(RR(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyttest_pack_unpackFscCsexUdd
dddfD]>\}}t|ƒ}|i||jƒ|id
|jƒqWd„}dS(Ns	a = 1,2,3s((1, 2, 3))s
("a","b","c")s(('a', 'b', 'c'))s
a,b,c = 1,2,3s(None, 1, None)s((None, 1, None))s((1, 2), 3, 4)s(((1, 2), 3, 4))R&cdSs8ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
ddddddddd	d
gdfdS(Niiiiiiiiii	((((s//usr/local/lib/python2.5/test/test_peepholer.pytcrater`s(s	a = 1,2,3s((1, 2, 3))(s
("a","b","c")s(('a', 'b', 'c'))(s
a,b,c = 1,2,3s((1, 2, 3))(s(None, 1, None)s((None, 1, None))(s((1, 2), 3, 4)s(((1, 2), 3, 4))(RR(RRRRR)((s//usr/local/lib/python2.5/test/test_peepholer.pyt#test_folding_of_tuples_of_constantsQscCsÎxvd!d"d#d$d%d&d'd(d)d*d+d,d-d.d/fD]A\}}t|ƒ}|i||j|ƒ|id|jƒq4Wtdƒ}|id|jƒ|id|jƒtdƒ}|id |jƒdS(0Ns	a = 2+3+4s(9)s"@"*4s('@@@@')sa="abc" + "def"s
('abcdef')sa = 3**4s(81)sa = 3*4s(12)s	a = 13//4s(3)sa = 14%4s(2)sa = 2+3s(5)sa = 13-4sa = (12,13)[1]s(13)sa = 13 << 2s(52)sa = 13 >> 2s
a = 13 & 7s
a = 13 ^ 7s(10)s
a = 13 | 7s(15)tBINARY_sa=2+"b"s('b')s
a="x"*1000s(1000)(s	a = 2+3+4s(9)(s"@"*4s('@@@@')(sa="abc" + "def"s
('abcdef')(sa = 3**4s(81)(sa = 3*4s(12)(s	a = 13//4s(3)(sa = 14%4s(2)(sa = 2+3s(5)(sa = 13-4s(9)(sa = (12,13)[1]s(13)(sa = 13 << 2s(52)(sa = 13 >> 2s(3)(s
a = 13 & 7s(5)(s
a = 13 ^ 7s(10)(s
a = 13 | 7s(15)(RR(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyt#test_folding_of_binops_on_constantsns2cCs«xRddd
fD]A\}}t|ƒ}|i||j|ƒ|id|jƒqWxOddfD]A\}}t|ƒ}|i||j|ƒ|id|jƒqbWdS(Ns`1`s('1')s-0.5s(-0.5)s~-2s(1)tUNARY_s-"abc"s('abc')s~"abc"(s`1`s('1')(s-0.5s(-0.5)(s~-2s(1)(s-"abc"s('abc')(s~"abc"s('abc')(RR(RRRR((s//usr/local/lib/python2.5/test/test_peepholer.pyt%test_folding_of_unaryops_on_constantsscCs^d„}t|ƒ}|id|jƒ|id|jƒ|i|iƒidƒdƒdS(NcSs|S(N((R((s//usr/local/lib/python2.5/test/test_peepholer.pyR¢sRs(None)tRETURN_VALUEi(R
RtassertEqualtsplittcount(RRR((s//usr/local/lib/python2.5/test/test_peepholer.pyttest_elim_extra_return s
	(t__name__t
__module__RRR R#R(R*R,R.R3(((s//usr/local/lib/python2.5/test/test_peepholer.pyRs		
						cCs³ddk}ddkl}tf}|i|Œ|ovt|dƒofddk}dgd}xAtt	|ƒƒD]-}|i|Œ|i
ƒ|iƒ||<quW|GHndS(Niÿÿÿÿ(ttest_supporttgettotalrefcounti(RttestR6Rtrun_unittestthasattrtgcRtxrangetlentcollectR7(tverboseRR6ttest_classesR;tcountsti((s//usr/local/lib/python2.5/test/test_peepholer.pyt	test_main«s	



t__main__R?(
RRt	cStringIORtunittestR
RtTestCaseRRRCR4tTrue(((s//usr/local/lib/python2.5/test/test_peepholer.pys<module>s	
	˜


Man Man