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

Lib.Krakatau.ssa.exceptionset.pyc Maven / Gradle / Ivy

?
?HRc@szddlZddlZddlmZddlmZdefd??YZdefd??YZedg?e_
dS(	i????Ni(tobjtypes(t	ValueTypetCatchSetManagercBsJeZdd?Zd?Zd?Zd?Zd?Zd?Zd?Z	RS(c
Cs?|dk	r'|\|_|_|_n?||_tj?|_tj}}xZ|D]R\}}|jj||?}tj	||?}	||	|B|j|<||	B}qSW||_|j
?|j?dS(N(tNonetenvtsetstmasktcollectionstOrderedDicttExceptionSettEMPTYtgettfromTopst	pruneKeyst
_conscheck(
tselfRtchpairst
attributestsofartemptyt	catchtypethandlertoldtnew((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__init__s	
	
cCsDx$|jD]}|j|c|M+s(RRRR(RR$((R$s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pytreplaceKeys*scCsWtj}x2|jj?D]!}||@s0t?||O}qW||jksSt?dS(N(R	R
RtvaluesRR(Rttemptv((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyR-s
	N(
t__name__t
__module__RRRR
RR R%R(((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyRs					R	cBs?eZdj?Zd?Zed??Zd?Zd?Zd?Z	d?Z
d?Zd?Zd	?Z
d
?Zd?Zd?ZeZed
??Zed??Zed??Zed??ZRS(s	env pairscCs?||_tg|D]\}}|t|?f^q?|_|s`dt|?dks`t?|js{|j?s{t?g}x.|D]&\}}|j|?|j|?q?Wtt	|??t|?ks?t?dS(Ns.nulli(
Rt	frozensettpairstzipRRtappendtextendtlentset(RRR,txtytpartstttholes((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyR6s	4#
cGs)t|g|D]}|t?f^q
?S(N(R	R+(RttopsR2((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyREscCs|jS(N(R,(R((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt_keyIscCs|jS(N(R,(R((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyRJscCs
t|j?S(N(tboolR,(R((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__nonzero__KscCs5tj|jg|jD]\}}|df^q?S(Ni(RtcommonSupertypeRR,(RttopR6((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pytgetSingleTTypeMscCs,tg|jD]\}}|df^q
?S(Ni(tsortedR,(RR<R6((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt	getTopTTsQsc	Cs?t|?t|?kst?|j?s6|j?r:|S||krMtjS|jj}|j}xB|jD]7}tj	g|D]}tj
|||?^q?}qlWtj|j|?S(N(ttypeRRR	R
Rt
isSubclassR,t	itertoolstchaintdiffPairtreduce(RtothertsubtestR,tpair2tpair1((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__sub__Ss	5cCsgt|?t|?kst?|j?s6||kr:|S|j?rJ|Stj|j|j|jB?S(N(R@RRR	RERR,(RRF((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__or__dscCs0t|?t|?kst?|||}|S(N(R@R(RRFR((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__and__lscCs|||kS(N((RRF((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt
isdisjointqscCs_g|jD]9\}}|r=dj|djt|???n|^q
}djdj|??S(Ns	{} - [{}]s, sES[{}](R,tformattjoinR>(RR<R6R4((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt__str__tsIcs?|\?}|\?}????r?t??fd?|D??rM|fSg}g|D];?????rZt??fd?|D??rZ?^qZ}xI|D]A?g|D]}?|??r?|^q?}|j?|f?q?W|Sn?????r?t??fd?|D??r#|fS?tj?t|??g?fg}g|D]+?t??fd?|D??sR?^qR}xI|D]A?g|D]}?|??r?|^q?}|j?|f?q?W|Sn|fSdS(Nc3s|]}??|?VqdS(N((R!th(RGtt1(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	sc3s|]}??|?VqdS(N((R!th2(RQRG(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?sc3s|]}??|?VqdS(N((R!RQ(RGtt2(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?sc3s|]}??|?VqdS(N((R!RS(RQRG(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?s(tanyR.R	treduceHolesR(RGRIRHtholes1tholes2tnewpairsRStnewholes((RQRGRRRTs@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyRDys*H
((8
(csb|\}}|\?}??|?s-t??|krft|?}|j??||t|?fSt??fd?|D??}g|D]}||kr?|^q?}t?}	x^tj||?D]J\}
}?||
?r?|	j|
?q??|
|?r?|	j|?q?q?Wtj?|	?}	t	|	?t	|?t	|?ksNt?|t|?|	fS(Nc3s$|]}?|??s|VqdS(N((R!RQ(RGRT(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?s(
RRtremoveR1RBtproducttaddR	RVR0(RGRIRHRRRWRXtholes1aRQtholes1btmerged_holesth1RS((RGRTs@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyt	mergePair?s$
%	(cCsng}xa|D]Y}xP|D]}|||?rPqqW|gg|D]}|||?sD|^qD}q
W|S(N((RGR6RZtholeteholeRQ((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyRV?s

3c	
s?|j?g|D] }|d|dkr|^q}g}xq|r?|j?\?}}xN|D] }|\?}????r??|ks?t??fd?|D??r?tj?||?}|gg|D]}||k	r?|^q?|}}Pqc????rc?|ks7t??fd?|D??rctj?||?}|gg|D]}||k	rY|^qY|}}PqcqcWtj?|?}|j?|f?q?Wt||?S(Niic3s|]}??|?VqdS(N((R!Rd(RGR<(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?sc3s|]}??|?VqdS(N((R!Rc(tetopRG(s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pys	?s(RAtpopRUR	RbRVR.(	RR,tpairRYR6tepairteholesRtp((ReRGR<s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyRE?s$	-	;3;3(R)R*tsplitt	__slots__RtstaticmethodRR8RR:R=R?RJRKRLRMRPt__repr__RDRbRVRE(((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyR	4s$											(RRBtRtmixinRtobjectRR	RR
(((s@/home/alex/projects/github/krakatau/Krakatau/ssa/exceptionset.pyts
/?




© 2015 - 2025 Weber Informatics LLC | Privacy Policy