%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/repr.pyc

ó
Mêáac@s`dZddgZddlZddlmZddd„ƒYZd„ZeƒZejZdS(	sGRedo the builtin repr() (representation) but with limits on most sizes.tReprtrepriÿÿÿÿN(tislicecBs‰eZd„Zd„Zd„Zdd„Zd„Zd„Zd„Zd„Z	d	„Z
d
„Zd„Zd„Z
d
„Zd„ZRS(cCsgd|_d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS(Niiiii(i(tmaxleveltmaxtupletmaxlisttmaxarraytmaxdicttmaxsettmaxfrozensettmaxdequet	maxstringtmaxlongtmaxother(tself((s /usr/local/lib/python2.7/repr.pyt__init__
s										cCs|j||jƒS(N(trepr1R(Rtx((s /usr/local/lib/python2.7/repr.pyRscCsét|ƒj}d|kr9|jƒ}dj|ƒ}nt|d|ƒrft|d|ƒ||ƒStj|ƒ}t|ƒ|j	krát
d|j	ddƒ}t
d|j	d|ƒ}|| d|t|ƒ|}n|SdS(Nt t_trepr_iiis...(ttypet__name__tsplittjointhasattrtgetattrt__builtin__RtlenR
tmax(RRtlevelttypenametpartststitj((s /usr/local/lib/python2.7/repr.pyRs#tc
CsÀt|ƒ}|dkr'|r'd}nˆ|d}	|j}
gt||ƒD]}|
||	ƒ^qJ}||kr|jdƒndj|ƒ}|dkr¯|r¯||}nd|||fS(Nis...is, s%s%s%s(RRRtappendR(
RRRtlefttrighttmaxiterttrailtnR!tnewlevelRtelemtpieces((s /usr/local/lib/python2.7/repr.pyt_repr_iterable)s	
	+
cCs|j||dd|jdƒS(Nt(t)t,(R.R(RRR((s /usr/local/lib/python2.7/repr.pyt
repr_tuple6scCs|j||dd|jƒS(Nt[t](R.R(RRR((s /usr/local/lib/python2.7/repr.pyt	repr_list9scCs)d|j}|j|||d|jƒS(Ns
array('%s', [s])(ttypecodeR.R(RRRtheader((s /usr/local/lib/python2.7/repr.pyt
repr_array<s
cCs(t|ƒ}|j||dd|jƒS(Nsset([s])(t_possibly_sortedR.R(RRR((s /usr/local/lib/python2.7/repr.pytrepr_set@scCs(t|ƒ}|j||dd|jƒS(Nsfrozenset([s])(R9R.R	(RRR((s /usr/local/lib/python2.7/repr.pytrepr_frozensetDscCs|j||dd|jƒS(Nsdeque([s])(R.R
(RRR((s /usr/local/lib/python2.7/repr.pyt
repr_dequeIscCsÚt|ƒ}|dkrdS|dkr,dS|d}|j}g}xYtt|ƒ|jƒD]?}|||ƒ}||||ƒ}	|jd||	fƒq^W||jkrÀ|jdƒndj|ƒ}
d|
fS(	Nis{}s{...}is%s: %ss...s, s{%s}(RRRR9RR%R(RRRR*R+RR-tkeytkeyreprtvalreprR!((s /usr/local/lib/python2.7/repr.pyt	repr_dictLs 
	cCs«tj||j ƒ}t|ƒ|jkr§td|jddƒ}td|jd|ƒ}tj|| |t|ƒ|ƒ}|| d|t|ƒ|}n|S(Niiis...(RRRRR(RRRR!R"R#((s /usr/local/lib/python2.7/repr.pytrepr_str[s%#cCstj|ƒ}t|ƒ|jkr{td|jddƒ}td|jd|ƒ}|| d|t|ƒ|}n|S(Niiis...(RRRRR(RRRR!R"R#((s /usr/local/lib/python2.7/repr.pyt	repr_longds#cCs®ytj|ƒ}Wn(tk
r=d|jjt|ƒfSXt|ƒ|jkrªtd|jddƒ}td|jd|ƒ}|| d|t|ƒ|}n|S(Ns<%s instance at %x>iiis...(	RRt	Exceptiont	__class__RtidRRR(RRRR!R"R#((s /usr/local/lib/python2.7/repr.pyt
repr_instancels
#(Rt
__module__RRRR.R2R5R8R:R;R<R@RARBRF(((s /usr/local/lib/python2.7/repr.pyRs	
		
										cCs-yt|ƒSWntk
r(t|ƒSXdS(N(tsortedRCtlist(R((s /usr/local/lib/python2.7/repr.pyR9zs
((	t__doc__t__all__Rt	itertoolsRRR9taReprR(((s /usr/local/lib/python2.7/repr.pyt<module>sr			

Zerion Mini Shell 1.0