All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Lib.test.pbcvm.test.test_builtin_pyc.pyc Maven / Gradle / Ivy

Go to download

Jython is an implementation of the high-level, dynamic, object-oriented language Python written in 100% Pure Java, and seamlessly integrated with the Java platform. It thus allows you to run Python on any Java platform.

There is a newer version: 2.7.4
Show newest version
??
???Ic@sEddkZddkZddklZlZlZlZlZlZddk	l
Z
ddkZddkZddk
Z
ddkZddkZeiddee?eidded?dad	fd
??YZdfd??YZd
fd??YZddfddfddfddfddfddfddfddfddfddfeei?eifdefd dfd!efd"efd#efd$efgZeoeed?dfed?dfed?dfed?dfed?dfed?dfed?dfed?dfed%d&?dfed?dfed?efed ?dfed!?efed"?efed#?efed$?efed'?efg7Znd(fd)??YZd*fd+??YZd,ei fd-??YZ!d.ei fd/??YZ"e#d0?Z$ed1joe$d2e%?ndS(3i????N(tfcmpthave_unicodetTESTFNtunlinktrun_unittestt	is_jython(tnegtignoreshex../oct.. of negative intsinteger argument expectedtunittestitSquarescBs#eZd?Zd?Zd?ZRS(cCs||_g|_dS(N(tmaxtsofar(tselfR
((sdist/Lib/test/test_builtin.pyt__init__s	cCs
t|i?S(N(tlenR(R((sdist/Lib/test/test_builtin.pyt__len__scCsxd|jo
|ijnp
t?nt|i?}x0||jo"|ii||?|d7}q=W|i|S(Nii(R
t
IndexErrorRRtappend(Rtitn((sdist/Lib/test/test_builtin.pyt__getitem__s+(t__name__t
__module__R
RR(((sdist/Lib/test/test_builtin.pyR	s		t
StrSquarescBs#eZd?Zd?Zd?ZRS(cCs||_g|_dS(N(R
R(RR
((sdist/Lib/test/test_builtin.pyR
$s	cCs
t|i?S(N(RR(R((sdist/Lib/test/test_builtin.pyR(scCs~d|jo
|ijnp
t?nt|i?}x6||jo(|iit||??|d7}q=W|i|S(Nii(R
RRRRtstr(RRR((sdist/Lib/test/test_builtin.pyR+s!
(RRR
RR(((sdist/Lib/test/test_builtin.pyR"s		t	BitBucketcBseZd?ZRS(cCsdS(N((Rtline((sdist/Lib/test/test_builtin.pytwrite5s(RRR(((sdist/Lib/test/test_builtin.pyR4st0t1it9i	t10i
t99ict100idt314i:s 314s314 s  		  314  		  s  1xs  1  s  1  tt s  		  s\u0663\u0661\u0664 sraw-unicode-escapeitTestFailingBoolcBseZd?ZRS(cCs
t?dS(N(tRuntimeError(R((sdist/Lib/test/test_builtin.pyt__nonzero__as(RRR'(((sdist/Lib/test/test_builtin.pyR%`stTestFailingItercBseZd?ZRS(cCs
t?dS(N(R&(R((sdist/Lib/test/test_builtin.pyt__iter__es(RRR)(((sdist/Lib/test/test_builtin.pyR(dstBuiltinTestcBsjeZd?Zd?Zd?Zd?Zd?Zd?Zd?Zd?Z	d?Z
d	?Zd
?Zd?Z
d?Zd
?Zd?ZdZeed?Zeid?eid?ei?ee?d?Zd?Zd?Zd?Zd?Zd?Zd?Zd?Zd?Z d?Z!d?Z"d?Z#d?Z$d ?Z%d!?Z&d"?Z'd#?Z(d$?Z)d%?Z*d&?Z+d'?Z,d(?Z-d)?Z.d*?Z/d+?Z0d,?Z1d-?Z2d.?Z3d/?Z4d0?Z5d1?Z6d2?Z7d3?Z8d4?Z9d5?Z:d6?Z;d7?Z<d8?Z=d9?Z>d:?Z?e@d;??ZAe@d<??ZBd=?ZCd>?ZDRS(?cCsdtd?td?td?|ittd?|ittdddd?|ittd	?dS(
NtsysttimetstringtspamspamiiiiR#(t
__import__tassertRaisestImportErrort	TypeErrort
ValueError(R((sdist/Lib/test/test_builtin.pyttest_importjs


cCs?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd	?d?|ittd
?dS(Nii?i.???gg??Q?	@g??Q?	?ll?l?????ta(tassertEqualtabsR0R2(R((sdist/Lib/test/test_builtin.pyttest_absrscCs*|itdddg?t?|itdddg?t?|ittdt?dg?|ittt??|it	td?|it	t?|it	tdddgg?|itg?t?ddg}|itd?|D??t?dddg}|itd	?|D??t?dS(
Niiii
i2i<cssx|]}|djVqWdS(i*N((t.0tx((sdist/Lib/test/test_builtin.pys	?si(cssx|]}|djVqWdS(i*N((R9R:((sdist/Lib/test/test_builtin.pys	?s(
R6talltTruetNonetFalseR0R&R%R(R2(RtS((sdist/Lib/test/test_builtin.pyttest_all?s cCs-|itdddg?t?|itdddg?t?|ittdt?dg?|ittt	??|it
td?|it
t?|it
tdddgg?|itg?t?dddg}|itd?|D??t?dd	dg}|itd
?|D??t?dS(Niii
ii(i<icssx|]}|djVqWdS(i*N((R9R:((sdist/Lib/test/test_builtin.pys	?sicssx|]}|djVqWdS(i*N((R9R:((sdist/Lib/test/test_builtin.pys	?s(R6tanyR=R>R<R0R&R%R;R(R2(RR?((sdist/Lib/test/test_builtin.pyttest_any?s c
s??fd?}?fd?}?fd?}?fd?}t|d
?t|d?t|d?t|d
?ttdh??itttdhddtbadmodetsinglei?iROsprint u"å"
tutf8sa = 1tbad(tcompileR0R2R3RYRtunicodetunichr(Rtbom((sdist/Lib/test/test_builtin.pyttest_compile?scCs6ddk}d|_t|d?|itt?dS(Ni????itspam(R+RstdelattrR0R2(RR+((sdist/Lib/test/test_builtin.pyttest_delattr?s	
cCs[d}|idt?j?ddk}|idt|?j?|ittdd?dS(NiR:i????tmodulesi*(RTtdirR+R0R2(RR:R+((sdist/Lib/test/test_builtin.pyttest_dir?s
cCs?|itdd?d?|itdd?d ?|itdd?d!?|itdd?d"?|itd
d?d#?|itdd?d$?|itd
d?d%?|itdd?d&?|itdd?d'?|itdd?d(?|itd
d?d)?|itdd?d*?|ittidd?tiddf?|ittdd?d+??|ittdd?d,??|ittdd?d-??|ittdd?d.??|itt?dS(/Niiiii????i????ii????i????lllll????l????ll????l????i????ig
@g??g@g??g
?g?g??g?g?gп(ii(i????i(i????i????(ii????(ll(l????l(l????l????(ll????(il(i????l(l????i????(li????(g@g??(g?g??(g?g?(g@gп(R6tdivmodR+tmaxintRTRR0R2(R((sdist/Lib/test/test_builtin.pyttest_divmods&    cCsD|itd?d?|itd?d?hdd<dd<}hdd<dd	<}|itd|?d?|itd||?d?|itd||?d?|itd	||?d?to<|ittd??d?|ittd??d?nhdd<dd<}hdd<dd	<}to?|ittd?|?d?|ittd?||?d?|ittd?||?d?|ittd	?||?d?d
}|it|d||?d?|ittdd?|?td
d??n|itt?|ittd?dS(Ns1+1is 1+1
iR5R^i?i,R_ssu"å"Rlså((R6tevalRRoR0R2(RtglobalstlocalsRq((sdist/Lib/test/test_builtin.pyt	test_eval s0 """ c
CsZddd??Y}|?}t?}|itd||?d?|ittd||?|itd||?td??|itd||?|?|itd	||?|?|itd|?d?d
dd??Y}|?}|ittd||?dtfd
??Y}|?}|itd||?d?|ittd||?|itd||?td??|itd||?|?|itd	||?|?td||?td|ti??ddd??Y}|?}d|d?|ittdd??|itdd?d?|itd?d ?d!?|ittdd?d"t	fd#??Y}|ittd$?|d ??d%t	fd&??Y}|ittd'?|d ??d(t	f?fd)??Y?|itd*??d ??d+?d,t	fd-??Y}|itd.?|d ??d/?t
oI|itdtd??td??|itd0?td ??td!??|ittdtd??|ittd1?|td ???d2tfd3??Y}|ittd4?|d ??d5tf?fd6??Y?|itd7??d ??td+??d8tfd9??Y}|itd:?|d ??td/??ndS(@NcSsd|jo
djnS(R5R?((R_((sdist/Lib/test/test_builtin.pyt?ssHello WorldtelloorldithelloiR#i	icSs
|djS(i((R:((sdist/Lib/test/test_builtin.pyR??si????ii
iiii$i1i@iQcSs|dS(i((R:((sdist/Lib/test/test_builtin.pyR??scSsdS(Ni((R?((sdist/Lib/test/test_builtin.pytidentity?sitBadSeqcBseZd?ZRS(cSs|djodSnt?dS(Nii*(R3(Rtindex((sdist/Lib/test/test_builtin.pyR?s
(RRR(((sdist/Lib/test/test_builtin.pyR??scSs|S(((R:((sdist/Lib/test/test_builtin.pyR??scSsdS(N((((sdist/Lib/test/test_builtin.pytbadfunc?scSs
|djS(i((R:((sdist/Lib/test/test_builtin.pyR??si*t12cSs
|djS(t3((R:((sdist/Lib/test/test_builtin.pyR??st1234t34tbadstrcBseZd?ZRS(cSs
t?dS(N(R3(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs
|djS(R?((R:((sdist/Lib/test/test_builtin.pyR??stbadstr2cBseZd?ZRS(cSsdS(Ni*((RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs
|djS(i*((R:((sdist/Lib/test/test_builtin.pyR??stweirdstrcseZ?fd?ZRS(cs?dti||??S(Ni(RR(RR?(R?(sdist/Lib/test/test_builtin.pyR?s(RRR((R?(sdist/Lib/test/test_builtin.pyR??scSs
|djS(t33((R:((sdist/Lib/test/test_builtin.pyR??st3344tshiftstrcBseZd?ZRS(cSs ttti||??d?S(Ni(RYtordRR(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs
|djS(R?((R:((sdist/Lib/test/test_builtin.pyR??st345cSs
|djS(R?((R:((sdist/Lib/test/test_builtin.pyR??scSs
|djS(R?((R:((sdist/Lib/test/test_builtin.pyR??st
badunicodecBseZd?ZRS(cSsdS(Ni*((RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs
|djS(i*((R:((sdist/Lib/test/test_builtin.pyR??stweirdunicodecseZ?fd?ZRS(cs?dti||??S(Ni(RoR(RR?(R?(sdist/Lib/test/test_builtin.pyR?s(RRR((R?(sdist/Lib/test/test_builtin.pyR??scSs|td?jS(R?(Ro(R:((sdist/Lib/test/test_builtin.pyR??stshiftunicodecBseZd?ZRS(cSs ttti||??d?S(Ni(RpR?RoR(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs|td?jS(R?(Ro(R:((sdist/Lib/test/test_builtin.pyR??s(ii(ii(iiii(ii(ii(R6tfilterR=R	R0R2tobjectR3trangeRRRo(	RR?R?R?R?R?R?R?R?((R?R?sdist/Lib/test/test_builtin.pyttest_filter?sPC4:1		""%(%"cCs?dtd?f}dtfd??Y}dtfd??Y}hhdd<dd<|<hdd<dd
<|<}toHdtfd??Y}ht?t?<td?td
?<||?d&?|itd?d?d&?|itd@dA?d&?|itdBdC?d&?|itdDdE?d&?|itdFdG?d&?|itdHdI?d&?|itdJdK?d&?|itdLdM?d&?|itdNdO?d&?|itdPdQ?d&?|itdRdS?d&?|itdTdU?d&?|itdVdW?d&?|itdXdY?d&?|itdZd[?d&?|itd\d]?d&?|itd^d_?d&?|itd`da?d&?|itdbdc?d&?|itddde?d&?|itdfdg?d&?|itdhd?di?|itdjd?di?|itdkd)?di?|itdld+?di?|itdmd-?di?|itdnd/?di?|itdod1?di?|itdpd3?di?|itdqd5?di?|itdrd7?di?|itdsd?di?|itdtd:?di?|itdud<?di?|itdvd>?di?|itdwd?di?|itdxdA?di?|itdydC?di?|itdzdE?di?|itd{dG?di?|itd|dI?di?|itd}dK?di?|itd~dM?di?|itddO?di?|itd?dQ?di?|itd?dS?di?|itd?dU?di?|itd?dW?di?|itd?dY?di?|itd?d[?di?|itd?d]?di?|itd?d_?di?|itd?da?di?|itd?dc?di?|itd?de?di?|itd?dg?di?dS(?Ni:g??Q?	@il:g??Q?	?i????g333333@g333333?g@g?RilR#t+t-R$s	s  		  i????ig}Ô%?I?Tg}Ô%?I??it123t53i(RiXiait0123iiSt0x123i#t!100000000000000000000000000000000lt102002022201221111211t10000000000000000it32244002423141it
1550104015504it211301422354it40000000000it12068657454i	t
4294967296i
t
1904440554it	9ba461594t	535a79889i
t	2ca5b7464it	1a20dcd81it	100000000ta7ffda91it704he7g4it4f5aff66it3723ai4git281d55i4it1fj8b184it1606k7icitmb994agithek2mglitdnchbnmitb28jpdmit8pfgih4it76beiggit5qmcpqgit4q0jto4it4000000i t3aokq94i!t2qhxjlii"t2br45qbi#t1z141z4i$t!100000000000000000000000000000001lt102002022201221111212t10000000000000001t32244002423142t
1550104015505t211301422355t40000000001t12068657455t
4294967297t
1904440555t	9ba461595t	535a7988at	2ca5b7465t	1a20dcd82t	100000001ta7ffda92t704he7g5t4f5aff67t3723ai4ht281d55i5t1fj8b185t1606k7idtmb994ahthek2mgmtdnchbnntb28jpdnt8pfgih5t76beight5qmcpqht4q0jto5t4000001t3aokq95t2qhxjljt2br45qct1z141z5(R#R?R?(R#R$s	s  		  (R6RgRRotLR3treprR+RzRTR?R?R0RpR2(RtstvtsigntprefixR?tvvR:((sdist/Lib/test/test_builtin.pyttest_int?s?#
cCsddd??Y}dtfd??Y}dtfd??Y}dtfd??Y}d	tfd
??Y}dtfd??Y}|it|??d
?|it|??d
?|it|??d
?|it|??d?|it|??d?|itt|??dS(NR?cBseZd?ZRS(cSsdS(Ni*((R((sdist/Lib/test/test_builtin.pyt__int__?s(RRRB(((sdist/Lib/test/test_builtin.pyR?>sR?cBseZd?ZRS(cSsdS(Ni*((R((sdist/Lib/test/test_builtin.pyRBCs(RRRB(((sdist/Lib/test/test_builtin.pyR?BsR?cBseZd?ZRS(cSsdS(Ni*((R((sdist/Lib/test/test_builtin.pyRBGs(RRRB(((sdist/Lib/test/test_builtin.pyR?FsR?cBseZd?ZRS(cSs|S(N((R((sdist/Lib/test/test_builtin.pyRBKs(RRRB(((sdist/Lib/test/test_builtin.pyR?JsR?cBseZd?ZRS(cSsdS(Nl*((R((sdist/Lib/test/test_builtin.pyRBOs(RRRB(((sdist/Lib/test/test_builtin.pyR?NstFoo5cBseZd?ZRS(cSsdS(NgE@((R((sdist/Lib/test/test_builtin.pyRBSs(RRRB(((sdist/Lib/test/test_builtin.pyRCRsi*il*((R?RgR6R0R2(RR?R?R?R?R?RC((sdist/Lib/test/test_builtin.pyttest_intconversion<scCs?|itt?d}|it|?|j?|i?i?}|it|?|j?dtfd??Y}|itt|d??|d?}t|||?|it||?|?dS(Nsnever interned beforeR?cBseZd?ZRS(cSsdS(Ni{((R((sdist/Lib/test/test_builtin.pyR?js(RRR?(((sdist/Lib/test/test_builtin.pyR?istabc(	R0R2tinternRTtswapcaseRtsetattrR6R?(RR<ts2R?((sdist/Lib/test/test_builtin.pyttest_intern]scCs?|itt?|ittdd?dddgdg}to|itd??nxY|D]Q}t|?}|i|i?d?|i|i?d?|it|i?q`WdS(Ni*Rt2R?(RRK(	R0R2titerRRRoR6tnextt
StopIteration(RtliststlR((sdist/Lib/test/test_builtin.pyt	test_iteruscCs?ddd??Y}d|fd??Y}dd	d??Y}|?}|?}|?}|it||??|it||??|it||??|it||??|itd|??|itt|d?|itt?dS(
NRPcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRP?sRRcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRR?stEcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRR?sRK(((RTR?R0R2(RRPRRRRR_R?te((sdist/Lib/test/test_builtin.pyttest_isinstance?s			cCs?ddd??Y}d|fd??Y}dd	d??Y}|?}|?}|?}|it||??|it||??|it||??|ittd|?|itt|d?|itt?dS(
NRPcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRP?sRRcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRR?sRRcBseZRS((RR(((sdist/Lib/test/test_builtin.pyRR?sRK(((RTt
issubclassR0R2(RRPRRRRR_R?RS((sdist/Lib/test/test_builtin.pyttest_issubclass?s			cCs?|itd?d?|itd?d?|itd?d?|itddddg?d?|ith?d?|ithdd<dd?s((iiii(R6R?RTR+Rzttestttest_supportRR0tMemoryErrortxrangetextend(Rtl0_3tl0_3_bisR:((sdist/Lib/test/test_builtin.pyt	test_list?s""$c	Cso	|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd	?d?|itd
?d?|itd?d?to |ittd??d?n|itdd
?d?to#|ittd?d
?d?ndd?d?fdddd?fg}t}toH|td?td?dd?ftd?td?dd?fg7}nx?||D]?\}}x?d?D]?}x}d?D]u}|||}|}|djo|tj	o|}ny |it|?t|??Wq?|j
oq?Xq?Wq?Wq?W|ittd?|ittdd?|ittdd?|itdd ?d!?|itd"d#?d!?|itd$d%?d!?|itd&d'?d!?|itd(d)?d!?|itd*d+?d!?|itd,d-?d!?|itd.d/?d!?|itd0d1?d!?|itd2d3?d!?|itd4d?d!?|itd5d6?d!?|itd7d8?d!?|itd9d:?d!?|itd;d
?d!?|itd<d=?d!?|itd>d??d!?|itd@dA?d!?|itdBd?d!?|itdCdD?d!?|itdEdF?d!?|itdGdH?d!?|itdIdJ?d!?|itdKdL?d!?|itdMdN?d!?|itdOdP?d!?|itdQdR?d!?|itdSdT?d!?|itdUdV?d!?|itdWdX?d!?|itdYdZ?d!?|itd[d\?d!?|itd]d^?d!?|itd_d`?d!?|itdadb?d!?|itdcd ?dd?|itded#?dd?|itdfd%?dd?|itdgd'?dd?|itdhd)?dd?|itdid+?dd?|itdjd-?dd?|itdkd/?dd?|itdld1?dd?|itdmd3?dd?|itdnd?dd?|itdod6?dd?|itdpd8?dd?|itdqd:?dd?|itdrd
?dd?|itdsd=?dd?|itdtd??dd?|itdudA?dd?|itdvd?dd?|itdwdD?dd?|itdxdF?dd?|itdydH?dd?|itdzdJ?dd?|itd{dL?dd?|itd|dN?dd?|itd}dP?dd?|itd~dR?dd?|itddT?dd?|itd?dV?dd?|itd?dX?dd?|itd?dZ?dd?|itd?d\?dd?|itd?d^?dd?|itd?d`?dd?|itd?db?dd?dS(?Ni:l:g??Q?	@lg??Q?	?l????g333333@g333333?g@g?s-3RilRRil
idR#R?R?R$s	s  		  R?R?i(iiR?ilR?iR?iR?iR?iR?iR?iR?i	R?i
R?iR?R?i
RiRiRRiRiRiRRiRiR	iR
iRiRiR
iRiRiRiRiRi Ri!Ri"Ri#Ri$RlRRRRRRRRR R!R"R#R$R%R&R'R(R)R*R+R,R-R.R/R0R1R2R3R4R5R6R7R8R9t00000000000000000000l F?x:^VlDG??d?r???Y?|g?O?s&YR5Il F?x:^VlDG??d?r???Y?|g?O?s&YR5I(R#R?R?(R#R$s	s  		  (R6R?RRoR:R3R0R2(	RtLLtL2R<R=R>R?R?R@((sdist/Lib/test/test_builtin.pyt	test_long?s? #
( cCsddd??Y}dtfd??Y}dtfd??Y}dtfd??Y}d	tfd
??Y}dtfd??Y}|it|??d
?|it|??d
?|it|??d
?|it|??d?|it|??d?|itt|??dS(NR?cBseZd?ZRS(cSsdS(Nl*((R((sdist/Lib/test/test_builtin.pyt__long__Ks(RRRe(((sdist/Lib/test/test_builtin.pyR?JsR?cBseZd?ZRS(cSsdS(Nl*((R((sdist/Lib/test/test_builtin.pyReOs(RRRe(((sdist/Lib/test/test_builtin.pyR?NsR?cBseZd?ZRS(cSsdS(Nl*((R((sdist/Lib/test/test_builtin.pyReSs(RRRe(((sdist/Lib/test/test_builtin.pyR?RsR?cBseZd?ZRS(cSs|S(N((R((sdist/Lib/test/test_builtin.pyReWs(RRRe(((sdist/Lib/test/test_builtin.pyR?VsR?cBseZd?ZRS(cSsdS(Ni*((R((sdist/Lib/test/test_builtin.pyRe[s(RRRe(((sdist/Lib/test/test_builtin.pyR?ZsRCcBseZd?ZRS(cSsdS(NgE@((R((sdist/Lib/test/test_builtin.pyRe_s(RRRe(((sdist/Lib/test/test_builtin.pyRC^sl*ii*((R?R?R6R0R2(RR?R?R?R?R?RC((sdist/Lib/test/test_builtin.pyttest_longconversionHscs?|itdd?ddddddddddd	g?|itdd
d?d3d4d5d6g?|itdtd??ddddddddddg
?|itd?tdd??dddg?yddkl?Wntj
od??nX|it?fd ?d!dgd"dgg?d#d$gd%d&gg?|itd'?dddgdddg?dddg?d(?}|it|dddg?dddg?|it|dddgdddg?d7d8d9g?|it|dddgdddgdddg?d;d=d?g?|itdtd??ddddd!d)d*d+d,d"g
?|itttd??ddddd!d)d*d+d,d"g
?|itdtd?td??d@dAdBg?|itt	td?td??dddg?|i
tt?|i
ttd-?d.?|itdd.g?d.g?d/dCd0??Y}|i
ttd1?|??d2?}|i
t
t|td??dS(DNshello worldthRSRPtoR$R?trR?tabcdtefgR5R^ROR_R?i
iiiiiiiiii	cSs||S(((R:((sdist/Lib/test/test_builtin.pyR?wsi????(tsqrtcSs
t|d?S(Ng??(tpow(R:((sdist/Lib/test/test_builtin.pyRl}scs
t?|?S((tmap(R:(Rl(sdist/Lib/test/test_builtin.pyR??siiQg@g@g"@g@cSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??scWs%d}x|D]}||}q
W|S(Ni((R=taccuR((sdist/Lib/test/test_builtin.pytplus?sii$i1i@cSs|S(((R:((sdist/Lib/test/test_builtin.pyR??si*R?cBseZd?ZRS(cSs
t?dS(N(R3(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??scSs|S(((R:((sdist/Lib/test/test_builtin.pyR??scSs
t?dS(N(R&(R:((sdist/Lib/test/test_builtin.pyR??s(R5RS(R^RO(R_R?(R?Niii	iiii
i	i	(ii(ii(iN((R6RnR=R?tmathRlR1R	RgR
R0R2R3R&(RRpR?R?((Rlsdist/Lib/test/test_builtin.pyttest_mapisf(%'$	!-%%	c
Bs?|ied?d?|ieddd?d?|ied?d?|ieddddddg?d?|ieddd?d?|iedd	d?d?|ied
dd?d?x@dD]8}y|e?UWnej
oq?X|i|?q?W|iedde?d?|iedde?d?|ieddde?d?g}ed?D]}|eid?qo~}e	d?|D??}|i
}|ie|d|?ee|?d|?d?dS(Nt123123R?iiilg@lg@g??lsmax(key=int)smax(1, key=int)smax(1, 2, keystone=int)smax(1, 2, key=int, abc=int)smax(1, 2, key=1)R?idi?css(x!|]}|tid?fVqWdS(i2N(trandomt	randrange(R9telem((sdist/Lib/test/test_builtin.pys	?si????(iiiiii(smax(key=int)smax(1, key=int)smax(1, 2, keystone=int)smax(1, 2, key=int, abc=int)smax(1, 2, key=1)(i(ii(
R6R
R}R2tfailRR?RtRuR?Rtsortedtreversed(Rtstmtt_[1]RtdataR?RO((sdist/Lib/test/test_builtin.pyttest_max?s6(0	c	
Bsk|ied?d?|ieddd?d?|ied?d?|ieddddddg?d?|ieddd?d?|iedd	d?d?|ied
dd?d
?|iee?|ieed?|ieed?d
dd??Y}|iee|??ddd??Y}|ieed|?f?x@dD]8}y|e?UWnej
oqYX|i|?qYW|ied de?d?|ied!de?d?|ieddde?d?g}ed?D]}|e	i
d?q?~}ed?|D??}|i}|ie|d|?e
|d|?d?dS("NRsRiiilg@lg@g??li*R?cBseZd?ZRS(cSs
t?dS(N(R3(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??sRacBseZd?ZRS(cSs
t?dS(N(R3(RRb((sdist/Lib/test/test_builtin.pyt__cmp__?s(RRR~(((sdist/Lib/test/test_builtin.pyRa?ssmin(key=int)smin(1, key=int)smin(1, 2, keystone=int)smin(1, 2, key=int, abc=int)smin(1, 2, key=1)R?idi?css(x!|]}|tid?fVqWdS(i2N(RtRu(R9Rv((sdist/Lib/test/test_builtin.pys	?si(iiiiii((((smin(key=int)smin(1, key=int)smin(1, 2, keystone=int)smin(1, 2, key=int, abc=int)smin(1, 2, key=1)(i(ii(R6tminR0R2R3R}RwRR?RtRuR?RRx(	RR?RaRzR{RR|R?RO((sdist/Lib/test/test_builtin.pyttest_min?sD(0	cCso|itd?d?|itd?d?|itd?d?|itd?d?|ittd	?dS(
Nidt0144ldt0144Li????s-0144l????ds-0144L((R6toctR0R2(R((sdist/Lib/test/test_builtin.pyttest_octs
cCs?ttd?}zg|id?|id?|id?|id?|id?|idd?|idd?Wd|i?XdS(	NR?s1+1
s+The quick brown fox jumps over the lazy dogs.
s
Dear John
tXXXidtYYY(topenRRtclose(Rtfp((sdist/Lib/test/test_builtin.pytwrite_testfile
s




cCs?|i?ttd?}z?|i|id?d?|i|id?d?|i|i?d?|i|id?d?|i|id?d?|i|id?d	d?|i|id
?dd?Wd|i?Xtt?dS(NRiis1+1
s-The quick brown fox jumps over the lazy dog.
tDearids John
i,R?i?R?(R?R?RR6treadlinetreadR?R(RR?((sdist/Lib/test/test_builtin.pyt	test_opens
!cCs?|itd?d?|itd?d?|itd?d?to&|ittti??ti?n|ittd?to|itttd??ndS(	NR$i RXiAR5iai*R?(	R6R?RRpR+R?R0R2Ro(R((sdist/Lib/test/test_builtin.pyttest_ord's&c	Cs?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d"?|itdd?d$?|itdd?d?|itdd?d?|itdd?d	?|itdd
?d?|itdd?d?|itdd?d?|itd
d?d?|itd
d?d?|itdd?d?|itdd?d?|itdd?d%?|itdd?d'?|itdd?d?|itdd?d?|itdd?d	?|itdd
?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d?|itdd?d(?|itdd?d*?|itdd?d?|itdd?d?|itdd?d?|itdd
?d?x?d+D]?}x?d,D]?}xwd-D]o}t|t?p t|t?pt|t?o|itt|||?q?|it|||?d?q?Wq?Wq?W|ittddd
?|ittddd?|ittddd?|ittd
dd?|ittd d!?|itt?dS(.Niiii
iiii????iii????llll????gg??g@g?@g?g@g ?l
g$@i?l?g@?@g8@i????l????lg{?G?fu?g?ʡE????iii@iii@g0Ag0Ag?A(ilg@(i
l
g$@(i?l?g@?@(R6RmR?R?R?R0R2R3(RR:RVR?((sdist/Lib/test/test_builtin.pyttest_pow1sj(cCs?|itd?dddg?|itdd?ddddg?|itd?g?|itd?g?|itddd?ddd	g?|itdd
d?ddddg?|itd?g?|itdd?g?|itddd?g?|itddd?g?tdti?}td
ti?}tdti?}|it||d?||dg?|it|d|d?|d|dg?|it|d|d?|d|dg?t|||?}|i||j?|i||j?|it|?d?t|||?}|i||j?|i||j?|it|?d?t|||?}|i||j?|i||j?|it|?d?|itt?|ittdddd?|it	tddd?|it	t||dtd??dt
fd??Y}|itt||d|d??|ittddd?|ittdd?|ittddd?|itttiti?|ittddti?dS(Niiiiiii????i
ii????i????i????idi2l????i????tbadzerocBseZd?ZRS(cSs
t?dS(N(R&(RRb((sdist/Lib/test/test_builtin.pyR~?s(RRR~(((sdist/Lib/test/test_builtin.pyR??sg}Ô%?I?Tg\??n??TRsi*ll????ll????ll(
R6R?R?R+RzRTRR0R2R3RgR&Rf(RR5R^R_tseqR?((sdist/Lib/test/test_builtin.pyt
test_rangeqsN%%('..##cBsi|i?eed?}ei}ei}z|e_e?e_|ie?d?|ied?d?|ie	?d?|ie	d?d?|e_eii
?|iee?e?e_e
id?e_|ieedd?e
id?e_|ie?d	?e
i?e_|iee?e
id
?e_e
i?e_eddd
?dUeiidd?eddd
?dUeiidd?eddd
?dUdddjodddg}ndddg}|ieii?i?|?e`|ieed?e`|ieed?Wd|e_|e_|i
?ee?XdS(NRiistesting
s,The quick brown fox jumps over the lazy dog.s	Dear JohntNULLi*s    'whitespace't
whitespaces1/2s
print input()ttest_builtin_tmpRiis-from __future__ import division;print input()iRs0.5tprompt(R?R?RR+tstdinR?RR6tinputt	raw_inputR?R0R3t	cStringIOtStringIOR2tEOFErrorRntseektgetvaluet
splitlinesR&R(RR?t	savestdint
savestdouttexpected((sdist/Lib/test/test_builtin.pyttest_input_and_raw_input?sR
				
		
cCs?|itd?dddgd?d?|itd?ddggdd	ggg?dddd	g?|itd
?tdd?d
?d?|itd?tdd?d?d?|itd?td??d?|itd?td?d?d?|itd?td?d?d?|itt?|ittdd?|ittddd?|itdd?d?|itddd?d?|ittdd?ddd??Y}|ittd|??dS(NcSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??sR5R^R_R#REcSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??sR?R?cSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??siiii?cSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??sillh?cSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??si
icSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??sicSs||S(((R:RV((sdist/Lib/test/test_builtin.pyR??si*RR?cBseZd?ZRS(cSs
t?dS(N(R3(RR?((sdist/Lib/test/test_builtin.pyR?s(RRR(((sdist/Lib/test/test_builtin.pyR??s(i*i*((R6treduceR?R	R0R2R3(RR?((sdist/Lib/test/test_builtin.pyttest_reduce?s&('("%%cCs0ddk}t|?ddk}t|?dS(Ni????(tmarshaltreloadR-(RR?R-((sdist/Lib/test/test_builtin.pyttest_reload?s
cCs?|itd?d?|itd?d?|itd?d?|itd?d?|itg?d?|ith?d	?g}|i|?|it|?d
?h}||d<|it|?d?dS(
NR#s''iRlt0Ls()s[]s{}s[[...]]s
{0: {...}}((R6R;R(RR5((sdist/Lib/test/test_builtin.pyt	test_reprs

cCs0|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd	?d	?|itd
?d?|itd?d?|itd?d?|itd
?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itd?d?|itdd?d?|itdddd?d?|itt?dS(Ngg??g$@ge??Ag@??x?Dg?g$?ge???g@??x??g????????g????????g333333$@g??e??Ag???????g333333$?g??e???g????????g??????#@g33??d??Ag???????g??????#?g33??d???g ?i????tnumbertndigits(R6troundR0R2(R((sdist/Lib/test/test_builtin.pyt
test_rounds2cCsPttdd?|itid?|itttdd?|itt?dS(NRsi(RHR+R6RsR0R2(R((sdist/Lib/test/test_builtin.pyttest_setattr7scCs?|itd?d?|itd?d?|itd?d?|itd
?d?|itg?d?|ith?d?g}|i|?|it|?d?h}||d<|it|?d	?dS(NR#iRls()s[]s{}s[[...]]s
{0: {...}}((R6RR(RR5((sdist/Lib/test/test_builtin.pyttest_str=s

cCs?|itg?d?|ittdd??d?|itttdd???d?|ittd??d?|itttd???d?|itdgdgdggg?dddg?|itt?|ittd	?|ittd
ddg?|ittd
ddgd
?|ittdgdgdgg?|itthddtt|??D]*}t|?|i	?ti
?||sx.<

															??????Y'





© 2015 - 2024 Weber Informatics LLC | Privacy Policy