config root man

Current Path : /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 : //usr/local/lib/python2.5/test/test_sets.pyo

³ò
h”Rc@sˆddkZddkZddkZddkZddkZddklZlZddkl	Z	eƒZ
deifd„ƒYZdefd„ƒYZ
defd	„ƒYZd
efd„ƒYZdefd
„ƒYZd„Zd„Zdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZdeifd„ƒYZdefd„ƒYZdefd„ƒYZd efd!„ƒYZd"efd#„ƒYZd$efd%„ƒYZd&eifd'„ƒYZd(efd)„ƒYZd*efd+„ƒYZ d,efd-„ƒYZ!d.efd/„ƒYZ"d0efd1„ƒYZ#d2efd3„ƒYZ$d4efd5„ƒYZ%d6eifd7„ƒYZ&d8e&fd9„ƒYZ'd:e&fd;„ƒYZ(d<e&fd=„ƒYZ)d>e&fd?„ƒYZ*d@e&fdA„ƒYZ+dBeifdC„ƒYZ,dDZ-he-dE<Z.ddF„Z0e1dGjoe0dHe2ƒndS(IiÿÿÿÿN(tSettImmutableSet(ttest_supporttTestBasicOpscBsªeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„ZRS(cCs4|idj	o |it|iƒ|iƒndS(N(treprtNonetassertEqualtset(tself((s*/usr/local/lib/python2.5/test/test_sets.pyt	test_repr
scCs |it|iƒ|iƒdS(N(RtlenRtlength(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_lengthscCs|i|i|iƒdS(N(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_self_equalityscCs|i|i|iƒdS(N(RRtdup(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_equivalent_equalityscCs |i|iiƒ|iƒdS(N(RRtcopyR(R((s*/usr/local/lib/python2.5/test/test_sets.pyt	test_copyscCs'|i|iB}|i||iƒdS(N(RRR(Rtresult((s*/usr/local/lib/python2.5/test/test_sets.pyttest_self_unionscCs$|itB}|i||iƒdS(N(Rt	empty_setRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_empty_union!s
cCs$t|iB}|i||iƒdS(N(RRRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_empty%s
cCs'|i|i@}|i||iƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_self_intersection)scCs!|it@}|i|tƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_empty_intersection-s
cCs!t|i@}|i|tƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_empty1s
cCs$|i|iA}|i|tƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_self_symmetric_difference5scCs$|itA}|i||iƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pytcheckempty_symmetric_difference9s
cCs$|i|i}|i|tƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_self_difference=scCs$|it}|i||iƒdS(N(RRRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_empty_differenceAs
cCs!t|i}|i|tƒdS(N(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_empty_difference_revEs
cCs.x'|iD]}|i||ijƒq
WdS(N(Rtassert_tvalues(Rtv((s*/usr/local/lib/python2.5/test/test_sets.pyttest_iterationIs
cCsHti|iƒ}ti|ƒ}|i|i|d|i|fƒdS(Ns%s != %s(tpickletdumpsRtloadsR(RtpR((s*/usr/local/lib/python2.5/test/test_sets.pyt
test_picklingMs(t__name__t
__module__R	RR
RRRRRRRRRRRRRR"R'(((s*/usr/local/lib/python2.5/test/test_sets.pyRs$																	tTestBasicOpsEmptycBseZd„ZRS(cCsLd|_g|_t|iƒ|_t|iƒ|_d|_d|_dS(Ns	empty setisSet([])(tcaseR RRRRR(R((s*/usr/local/lib/python2.5/test/test_sets.pytsetUpVs			(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR*UstTestBasicOpsSingletoncBs#eZd„Zd„Zd„ZRS(cCsOd|_dg|_t|iƒ|_t|iƒ|_d|_d|_dS(Nsunit set (number)iisSet([3])(R+R RRRRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,as		cCs|id|ijƒdS(Ni(t
failUnlessR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_iniscCs|id|ijƒdS(Ni(R.R(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_not_inls(R(R)R,R/R0(((s*/usr/local/lib/python2.5/test/test_sets.pyR-`s		tTestBasicOpsTuplecBs#eZd„Zd„Zd„ZRS(cCsOd|_dg|_t|iƒ|_t|iƒ|_d|_d|_dS(Nsunit set (tuple)itzeroisSet([(0, 'zero')])(iszero(R+R RRRRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,rs		cCs|id|ijƒdS(NiR2(iszero(R.R(R((s*/usr/local/lib/python2.5/test/test_sets.pyR/zscCs|id|ijƒdS(Ni	(R.R(R((s*/usr/local/lib/python2.5/test/test_sets.pyR0}s(R(R)R,R/R0(((s*/usr/local/lib/python2.5/test/test_sets.pyR1qs		tTestBasicOpsTriplecBseZd„ZRS(cCsXd|_ddtig|_t|iƒ|_t|iƒ|_d|_d|_	dS(Ns
triple setiR2i(
R+toperatortaddR RRRRRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,ƒs		(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR3‚sccst‚tVdS(N(t	TypeErrortTrue(((s*/usr/local/lib/python2.5/test/test_sets.pytbaditersccs	tVdS(N(R7(((s*/usr/local/lib/python2.5/test/test_sets.pytgooditer‘stTestExceptionPropagationcBs eZdZd„Zd„ZRS(s?SF 628246:  Set constructor should not trap iterator TypeErrorscCs|itttƒƒdS(N(tassertRaisesR6RR8(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_instanceWithException—scCsmtdddgƒtdƒthdd<dd<dd<ƒttdƒƒtdƒttƒƒdS(	Niiitonettwotthreetabc(iii(RtxrangeR9(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_instancesWithoutExceptionšs
%
(R(R)t__doc__R<RB(((s*/usr/local/lib/python2.5/test/test_sets.pyR:”s	t
TestSetOfSetscBseZd„ZRS(cCs~tdgƒ}t|gƒ}|iƒ}|it|ƒtƒ|i|ƒ|i|ƒ|i|tƒƒ|i|ƒdS(Ni(RtpopRttypeRR5tremovetdiscard(Rtinnertoutertelement((s*/usr/local/lib/python2.5/test/test_sets.pyttest_constructor¦s

(R(R)RL(((s*/usr/local/lib/python2.5/test/test_sets.pyRD¥st
TestBinaryOpscBs˜eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„ZRS(cCstdƒ|_dS(Niii(iii(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,³scCs8|i|ithdd<dd<dd<ƒƒdS(Niiiiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_eq¶scCs0|itdgƒB}|i|tdƒƒdS(Niii(iii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_subset¹scCsE|itddddgƒB}|i|tddddgƒƒdS(Niiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_superset½scCsE|itdddgƒB}|i|tdddddgƒƒdS(Niiiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_overlapÁscCs<|itdgƒB}|i|tddddgƒƒdS(Niiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_non_overlapÅscCs-|itdƒ@}|i|tdƒƒdS(Nii(ii(ii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_subsetÉscCsB|itddddgƒ@}|i|tdddgƒƒdS(Niiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_supersetÍscCs9|itdddgƒ@}|i|tdgƒƒdS(Niii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_overlapÑscCs*|itdgƒ@}|i|tƒdS(Ni(RRRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_non_overlapÕscCs0|itdƒA}|i|tdgƒƒdS(Niii(ii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_subsetÙscCs0|itdƒA}|i|tdgƒƒdS(Niiii(iiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_supersetÝscCs9|itdƒA}|i|tddddgƒƒdS(Niiiii(iii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_overlapáscCs<|itdgƒA}|i|tddddgƒƒdS(Niiii(RRR(RR((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_non_overlapåscCsxtdƒtdƒ}}|itt||ƒ|it||ƒdƒ|itt|dƒ|ittd|ƒdS(NtatbiiR@(RR;R6tcmpR(RR[R\((s*/usr/local/lib/python2.5/test/test_sets.pyttest_cmpés
cCsœ|iiƒ}||O}|i||iƒ||M}|i||iƒ||8}|it|ƒdƒ|iiƒ}||N}|it|ƒdƒdS(Ni(RRRR
(Rtt((s*/usr/local/lib/python2.5/test/test_sets.pyttest_inplace_on_selfös



(R(R)R,RNRORPRQRRRSRTRURVRWRXRYRZR^R`(((s*/usr/local/lib/python2.5/test/test_sets.pyRM²s 															
t
TestUpdateOpscBsÅeZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCstdƒ|_dS(Niii(iii(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,scCs5|itdgƒO_|i|itdƒƒdS(Niii(iii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRO	scCsJ|itddddgƒO_|i|itddddgƒƒdS(Niiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRP
s!cCsJ|itdddgƒO_|i|itdddddgƒƒdS(Niiiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRQscCsA|itdgƒO_|i|itddddgƒƒdS(Niiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRRscCsK|iitdddgƒƒ|i|itdddddgƒƒdS(Niiiii(Rtunion_updateRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_method_callscCs2|itdƒM_|i|itdƒƒdS(Nii(ii(ii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRSscCsG|itddddgƒM_|i|itdddgƒƒdS(Niiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRT!s!cCs>|itdddgƒM_|i|itdgƒƒdS(Niii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRU%scCs/|itdgƒM_|i|itƒdS(Ni(RRRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRV)scCs?|iitdddgƒƒ|i|itdgƒƒdS(Niii(Rtintersection_updateRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_method_call-scCs5|itdƒN_|i|itdgƒƒdS(Niii(ii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRW1scCs5|itdƒN_|i|itdgƒƒdS(Niiii(iiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRX5scCs>|itdƒN_|i|itddddgƒƒdS(Niiiii(iii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRY9scCsA|itdgƒN_|i|itddddgƒƒdS(Niiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyRZ=scCsH|iitdddgƒƒ|i|itddddgƒƒdS(Niiiii(Rtsymmetric_difference_updateRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_method_callAscCs5|itdƒ8_|i|itdgƒƒdS(Niii(ii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_subsetEscCs2|itdƒ8_|i|itgƒƒdS(Niiii(iiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_supersetIscCs8|itdƒ8_|i|itddgƒƒdS(Niiiii(iii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_overlapMscCs>|itdgƒ8_|i|itdddgƒƒdS(Niiii(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_non_overlapQscCsB|iitdddgƒƒ|i|itddgƒƒdS(Niiiii(Rtdifference_updateRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_method_callUs(R(R)R,RORPRQRRRcRSRTRURVReRWRXRYRZRgRhRiRjRkRm(((s*/usr/local/lib/python2.5/test/test_sets.pyRas*																				t
TestMutatecBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(cCs(dddg|_t|iƒ|_dS(NR[R\tc(R RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,\scCs-|iidƒ|i|itdƒƒdS(NRoR@(RR5RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_add_present`scCs-|iidƒ|i|itdƒƒdS(Ntdtabcd(RR5RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_add_absentdscCsgtƒ}d}x>|iD]3}|i|ƒ|d7}|it|ƒ|ƒqW|i||iƒdS(Nii(RR R5RR
R(Rttmptexpected_lenR!((s*/usr/local/lib/python2.5/test/test_sets.pyttest_add_until_fullhs	


cCs-|iidƒ|i|itdƒƒdS(NR\tac(RRGRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_remove_presentqscCs;y!|iidƒ|idƒWntj
onXdS(NRqs7Removing missing element should have raised LookupError(RRGtfailtLookupError(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_remove_absentus
cCsZt|iƒ}xD|iD]9}|ii|ƒ|d8}|it|iƒ|ƒqWdS(Ni(R
RR RGR(RRuR!((s*/usr/local/lib/python2.5/test/test_sets.pyttest_remove_until_empty|s

cCs-|iidƒ|i|itdƒƒdS(NRotab(RRHRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_discard_presentƒscCs-|iidƒ|i|itdƒƒdS(NRqR@(RRHRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_discard_absent‡scCs*|iiƒ|it|iƒdƒdS(Ni(RtclearRR
(R((s*/usr/local/lib/python2.5/test/test_sets.pyt
test_clear‹s
cCsuh}x"|iod||iiƒ<q	W|it|ƒt|iƒƒx$|iD]}|i||jƒqTWdS(N(RRRERR
R R.(RtpoppedR!((s*/usr/local/lib/python2.5/test/test_sets.pyttest_pops

cCs0|iidƒ|i|it|iƒƒdS(N((RRbRRR (R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_update_empty_tuple—scCs0|iidƒ|i|it|iƒƒdS(NR[(R[(RRbRRR (R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_update_unit_tuple_overlap›scCs7|iidƒ|i|it|idgƒƒdS(NR[tz(R[R†(RRbRRR (R((s*/usr/local/lib/python2.5/test/test_sets.pyt"test_update_unit_tuple_non_overlapŸs(R(R)R,RpRsRvRxR{R|R~RRRƒR„R…R‡(((s*/usr/local/lib/python2.5/test/test_sets.pyRn[s														tTestSubsetscBseeZhdd<dd<Zhdd<dd<dd<dd<dd<dd<Zd„ZRS(	tissubsets<=t
issupersets>=s==s!=t>t<cCs#|i}|i}x
d	D]}||ij}td|dtƒƒ}|i||ƒ|tijo6t|ti|ƒ}||ƒ}|i||ƒnti	|}td|dtƒƒ}|i||ƒ|tijo6t|ti|ƒ}||ƒ}|i||ƒqqWdS(
Ns!=s==RŒs<=R‹s>=txty(s!=s==RŒs<=R‹s>=(
tlefttrighttcasestevaltlocalsRRˆtcase2methodtgetattrtreverse(RRRŽR+texpectedRtmethodtrcase((s*/usr/local/lib/python2.5/test/test_sets.pyt
test_issubset³s$		
(R(R)R”R–Rš(((s*/usr/local/lib/python2.5/test/test_sets.pyRˆ¥s

				tTestSubsetEqualEmptycBs&eZeƒZeƒZdZdZRS(s
both emptys==s<=s>=(s==s<=s>=(R(R)RRRtnameR‘(((s*/usr/local/lib/python2.5/test/test_sets.pyR›Ës		tTestSubsetEqualNonEmptycBs8eZeddgƒZeddgƒZdZdZRS(iis
equal pairs==s<=s>=(s==s<=s>=(R(R)RRRRœR‘(((s*/usr/local/lib/python2.5/test/test_sets.pyRÓstTestSubsetEmptyNonEmptycBs/eZeƒZeddgƒZdZdZRS(iisone empty, one non-emptys!=RŒs<=(s!=RŒs<=(R(R)RRRRœR‘(((s*/usr/local/lib/python2.5/test/test_sets.pyRžÛs	tTestSubsetPartialcBs5eZedgƒZeddgƒZdZdZRS(iis&one a non-empty proper subset of others!=RŒs<=(s!=RŒs<=(R(R)RRRRœR‘(((s*/usr/local/lib/python2.5/test/test_sets.pyRŸãstTestSubsetNonOverlapcBs2eZedgƒZedgƒZdZdZRS(iisneither empty, neither containss!=(R(R)RRRRœR‘(((s*/usr/local/lib/python2.5/test/test_sets.pyR ëstTestOnlySetsInBinaryOpscBs†eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„ZRS(cCst|i|i|ijtƒ|i|i|ijtƒ|i|i|ijtƒ|i|i|ijtƒdS(N(RtotherRtFalseR7(R((s*/usr/local/lib/python2.5/test/test_sets.pyt
test_eq_neõscs̈it‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒˆit‡fd†ƒdS(	NcsˆiˆijS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyt<lambda>ýscsˆiˆijS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥þscsˆiˆijS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥ÿscsˆiˆijS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥scsˆiˆijS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥scsˆiˆijS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥scsˆiˆijS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥scsˆiˆijS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥s(R;R6(R((Rs*/usr/local/lib/python2.5/test/test_sets.pyttest_ge_gt_le_ltüscCs=y|i|iO_Wntj
onX|idƒdS(Nsexpected TypeError(RR¢R6Ry(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_update_operators
cCsA|io|ii|iƒn|it|ii|iƒdS(N(totherIsIterableRRbR¢R;R6(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_union_updates
cssˆit‡fd†ƒˆit‡fd†ƒˆioˆiiˆiƒnˆitˆiiˆiƒdS(NcsˆiˆiBS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥scsˆiˆiBS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥s(R;R6R¨RtunionR¢(R((Rs*/usr/local/lib/python2.5/test/test_sets.pyt
test_unions

cCs=y|i|iM_Wntj
onX|idƒdS(Nsexpected TypeError(RR¢R6Ry(R((s*/usr/local/lib/python2.5/test/test_sets.pyt!test_intersection_update_operators
cCsA|io|ii|iƒn|it|ii|iƒdS(N(R¨RRdR¢R;R6(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection_update%s

		cssˆit‡fd†ƒˆit‡fd†ƒˆioˆiiˆiƒnˆitˆiiˆiƒdS(Ncsˆiˆi@S((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥.scsˆiˆi@S((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥/s(R;R6R¨RtintersectionR¢(R((Rs*/usr/local/lib/python2.5/test/test_sets.pyttest_intersection-s

cCs=y|i|iN_Wntj
onX|idƒdS(Nsexpected TypeError(RR¢R6Ry(R((s*/usr/local/lib/python2.5/test/test_sets.pyt#test_sym_difference_update_operator5s
cCsA|io|ii|iƒn|it|ii|iƒdS(N(R¨RRfR¢R;R6(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_difference_update=s

		cssˆit‡fd†ƒˆit‡fd†ƒˆioˆiiˆiƒnˆitˆiiˆiƒdS(NcsˆiˆiAS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥FscsˆiˆiAS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥Gs(R;R6R¨Rtsymmetric_differenceR¢(R((Rs*/usr/local/lib/python2.5/test/test_sets.pyttest_sym_differenceEs

cCs=y|i|i8_Wntj
onX|idƒdS(Nsexpected TypeError(RR¢R6Ry(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_update_operatorMs
cCsA|io|ii|iƒn|it|ii|iƒdS(N(R¨RRlR¢R;R6(R((s*/usr/local/lib/python2.5/test/test_sets.pyttest_difference_updateUs

		cssˆit‡fd†ƒˆit‡fd†ƒˆioˆiiˆiƒnˆitˆiiˆiƒdS(NcsˆiˆiS((RR¢((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥^scsˆiˆiS((R¢R((R(s*/usr/local/lib/python2.5/test/test_sets.pyR¥_s(R;R6R¨Rt
differenceR¢(R((Rs*/usr/local/lib/python2.5/test/test_sets.pyttest_difference]s

(R(R)R¤R¦R§R©R«R¬R­R¯R°R±R³R´RµR·(((s*/usr/local/lib/python2.5/test/test_sets.pyR¡ós													tTestOnlySetsNumericcBseZd„ZRS(cCs%tdƒ|_d|_t|_dS(Niiii(iii(RRR¢R£R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,hs	(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR¸gstTestOnlySetsDictcBseZd„ZRS(cCs7tdƒ|_hdd<dd<|_t|_dS(Niiii(iii(RRR¢R7R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,ps(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR¹ostTestOnlySetsOperatorcBseZd„ZRS(cCs(tdƒ|_ti|_t|_dS(Niii(iii(RRR4R5R¢R£R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,xs(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRºwstTestOnlySetsTuplecBseZd„ZRS(cCs%tdƒ|_d|_t|_dS(Niiiii(iii(iii(RRR¢R7R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,€s	(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR»stTestOnlySetsStringcBseZd„ZRS(cCs%tdƒ|_d|_t|_dS(NiiiR@(iii(RRR¢R7R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,ˆs	(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR¼‡stTestOnlySetsGeneratorcBseZd„ZRS(cCs1d„}tdƒ|_|ƒ|_t|_dS(Ncss&xtdddƒD]}|VqWdS(Nii
i(RA(ti((s*/usr/local/lib/python2.5/test/test_sets.pytgen‘siii(iii(RRR¢R7R¨(RR¿((s*/usr/local/lib/python2.5/test/test_sets.pyR,s	(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR½stTestOnlySetsofSetscBseZd„ZRS(cCs7tdƒ|_tdƒtdƒg|_t|_dS(NiiiR}tcd(iii(RRRR¢R7R¨(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,›s(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRÀšstTestCopyingcBseZd„Zd„ZRS(cCs–|iiƒ}t|ƒ}|iƒt|iƒ}|iƒ|it|ƒt|ƒƒx5tt|ƒƒD]!}|i||||jƒqmWdS(N(RRtlisttsortRR
trangeR.(RRtdup_listtset_listR¾((s*/usr/local/lib/python2.5/test/test_sets.pyR¤s

cCs–ti|iƒ}t|ƒ}|iƒt|iƒ}|iƒ|it|ƒt|ƒƒx2tt|ƒƒD]}|i||||ƒqpWdS(N(RtdeepcopyRRÃRÄRR
RÅ(RRRÆRÇR¾((s*/usr/local/lib/python2.5/test/test_sets.pyttest_deep_copy¬s

(R(R)RRÉ(((s*/usr/local/lib/python2.5/test/test_sets.pyR¢s	tTestCopyingEmptycBseZd„ZRS(cCstƒ|_dS(N(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,¸s(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRÊ·stTestCopyingSingletoncBseZd„ZRS(cCstdgƒ|_dS(Nthello(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,¾s(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyR˽stTestCopyingTriplecBseZd„ZRS(cCstdddgƒ|_dS(NR2i(RRR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,Äs(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRÍÃstTestCopyingTuplecBseZd„ZRS(cCstdgƒ|_dS(Nii(ii(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,Ês(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRÎÉstTestCopyingNestedcBseZd„ZRS(cCstddfgƒ|_dS(Niiii(ii(ii(RR(R((s*/usr/local/lib/python2.5/test/test_sets.pyR,Ðs(R(R)R,(((s*/usr/local/lib/python2.5/test/test_sets.pyRÏÏstTestIdentitiescBsGeZd„Zd„Zd„Zd„Zd„Zd„Zd„ZRS(cCsvtg}tdƒD]}|tidƒq~ƒ|_tg}tdƒD]}|tidƒqM~ƒ|_dS(Ni2id(RRAtrandomt	randrangeR[R\(Rt_[1]R¾t_[2]((s*/usr/local/lib/python2.5/test/test_sets.pyR,Ös9cCs¼|i|i}}|i|||jƒ|i|||jƒ|i||@|jƒ|i||@|jƒ|i||B|jƒ|i||B|jƒ|i||A||BjƒdS(N(R[R\R(RR[R\((s*/usr/local/lib/python2.5/test/test_sets.pyttest_binopsVsSubsetsÚscCsˆ|i|i}}|i||@||@ƒ|i||B||Bƒ|i||A||Aƒ||jo|i||||ƒndS(N(R[R\RtassertNotEqual(RR[R\((s*/usr/local/lib/python2.5/test/test_sets.pyttest_commutativityäs
cCs |itƒ}}|i||A|ƒ|i|||ƒ|i||B|ƒ|i||@|ƒ|i||jƒ|i||jƒ|i||jƒdS(N(R[RRR(RR[R2((s*/usr/local/lib/python2.5/test/test_sets.pyttest_reflexsive_relationsìscCsï|i|i}}|i||||@B||B||Bƒ|i||@||AB||Bƒ|i|||B||Bƒ|i|||B||Bƒ|i||||@B|ƒ|i||||@B|ƒ|i||||B||AƒdS(N(R[R\R(RR[R\((s*/usr/local/lib/python2.5/test/test_sets.pyttest_summationsös( cCsm|i|itƒ}}}|i|||@|ƒ|i|||@|ƒ|i||@||A@|ƒdS(N(R[R\RR(RR[R\R2((s*/usr/local/lib/python2.5/test/test_sets.pyttest_exclusionscCs|i|i}}|it|ƒt||ƒt||@ƒƒ|it|ƒt||ƒt||@ƒƒ|it||Aƒt||ƒt||ƒƒ|it||Bƒt||ƒt||@ƒt||ƒƒ|it||Aƒt||@ƒt||BƒƒdS(N(R[R\RR
(RR[R\((s*/usr/local/lib/python2.5/test/test_sets.pyttest_cardinality_relationss..2@(	R(R)R,RÕR×RØRÙRÚRÛ(((s*/usr/local/lib/python2.5/test/test_sets.pyRÐÕs		
		
		sÓ
Example from the Library Reference:  Doc/lib/libsets.tex

>>> from sets import Set as Base  # override _repr to get sorted output
>>> class Set(Base):
...     def _repr(self):
...         return Base._repr(self, sorted=True)
>>> engineers = Set(['John', 'Jane', 'Jack', 'Janice'])
>>> programmers = Set(['Jack', 'Sam', 'Susan', 'Janice'])
>>> managers = Set(['Jane', 'Jack', 'Susan', 'Zack'])
>>> employees = engineers | programmers | managers           # union
>>> engineering_management = engineers & managers            # intersection
>>> fulltime_management = managers - engineers - programmers # difference
>>> engineers.add('Marvin')
>>> print engineers
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin'])
>>> employees.issuperset(engineers)           # superset test
False
>>> employees.union_update(engineers)         # update from another set
>>> employees.issuperset(engineers)
True
>>> for group in [engineers, programmers, managers, employees]:
...     group.discard('Susan')                # unconditionally remove element
...     print group
...
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin'])
Set(['Jack', 'Janice', 'Sam'])
Set(['Jack', 'Jane', 'Zack'])
Set(['Jack', 'Jane', 'Janice', 'John', 'Marvin', 'Sam', 'Zack'])
t
libreftestc Cs‡ddk}ddkl}tittttt	t
ttt
tttttttttttttttttt|i |ƒƒdS(Niÿÿÿÿ(t	test_sets(!tdoctestttestRÝRtrun_unittestRDR:R*R-R1R3RMRaRnR›RRžRŸR R¸R¹RºR»R¼R½RÀRÊRËRÍRÎRÏRÐtDocTestSuite(tverboseRÞRÝ((s*/usr/local/lib/python2.5/test/test_sets.pyt	test_main5s>t__main__Râ(3tunittestR4RR#RÑtsetsRRRßRRtTestCaseRR*R-R1R3R8R9R:RDRMRaRnRˆR›RRžRŸR R¡R¸R¹RºR»R¼R½RÀRÂRÊRËRÍRÎRÏRÐRÜt__test__RRãR(R7(((s*/usr/local/lib/python2.5/test/test_sets.pys<module>sR<	J		
SVJ&tZ"


Man Man