b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 104.21.65.202 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/collections.pyo
Size14.07 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:37
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sddddgZddkTddkZeei7ZddklZlZddklZdd kl Z
ddk Z dd
k
lZdd klZydd klZWn#ej
odd klZnXdefd
��YZed�ZedjoddklZlZedde�Z e dddd�Z!dedd�fd��YZ x/e dd�e ddd�fD] Z!e!GHqWdedd�fd��YZ e dd �i"dd!�GHed"e i#d&�Z$e$i%GHddk&Z&ed$d%�Z'e'e&i(��GHndS('tdequet defaultdictt
namedtuplet OrderedDictiÿÿÿÿ(t*N(RR(t
itemgetter(t iskeyword(timap(teq(t get_identcBseZdZd�Zeid�Zeid�Zd�Zd�Zd�Z d�Z
d�Z d �Z d
�Z
d �Zd �ZeiZeZe�Zed
�Zdd�Zed�Zhd�Zd�Zd�Zedd��Zd�Zd�Z d�Z!d�Z"d�Z#RS(s)Dictionary that remembers insertion ordercOs�t|�djotdt|���ny |iWn9tj
o-g|_}||dg|(h|_nX|i||�dS(sÅInitialize an ordered dictionary. The signature is the same as
regular dictionaries, but keyword arguments are not recommended because
their insertion order is arbitrary.

is$expected at most 1 arguments, got %dN(tlent TypeErrort_OrderedDict__roottAttributeErrortNonet_OrderedDict__mapt_OrderedDict__update(tselftargstkwdstroot((s#/usr/lib64/python2.6/collections.pyt__init__s 
cCsZ||jo=|i}|d}|||g|d<|d<|i|<n||||�S(s!od.__setitem__(i, y) <==> od[i]=yii(R R(Rtkeytvaluet dict_setitemRtlast((s#/usr/lib64/python2.6/collections.pyt __setitem__/s

 
*cCs@|||�|ii|�\}}}||d<||d<dS(s od.__delitem__(y) <==> del od[y]iiN(Rtpop(RRt dict_delitemt link_prevt link_nextt_((s#/usr/lib64/python2.6/collections.pyt __delitem__9s

ccs?|i}|d}x%||j o|dV|d}qWdS(sod.__iter__() <==> iter(od)iiN(R (RRtcurr((s#/usr/lib64/python2.6/collections.pyt__iter__Bs  

 ccs?|i}|d}x%||j o|dV|d}qWdS(s#od.__reversed__() <==> reversed(od)iiN(R (RRR!((s#/usr/lib64/python2.6/collections.pyt __reversed__Ks  

 cCs7|i}||dg|(|ii�ti|�dS(s.od.clear() -> None. Remove all items from od.N(R RRtcleartdict(RR((s#/usr/lib64/python2.6/collections.pyR$Ts 
cCs
t|�S(sod.keys() -> list of keys in od(tlist(R((s#/usr/lib64/python2.6/collections.pytkeys]scCs#g}|D]}|||q ~S(s#od.values() -> list of values in od((Rt_[1]R((s#/usr/lib64/python2.6/collections.pytvaluesascCs)g}|D]}||||fq ~S(s.od.items() -> list of (key, value) pairs in od((RR(R((s#/usr/lib64/python2.6/collections.pytitemsescCs
t|�S(s0od.iterkeys() -> an iterator over the keys in od(titer(R((s#/usr/lib64/python2.6/collections.pytiterkeysisccsx|D]}||VqWdS(s2od.itervalues -> an iterator over the values in odN((Rtk((s#/usr/lib64/python2.6/collections.pyt
itervaluesmsccs$x|D]}|||fVqWdS(s=od.iteritems -> an iterator over the (key, value) pairs in odN((RR-((s#/usr/lib64/python2.6/collections.pyt iteritemsrscCsG||jo||}||=|S||ijot|��n|S(s²od.pop(k[,d]) -> v, remove specified key and return the corresponding
value. If key is not found, d is returned if given, otherwise KeyError
is raised.

(t_OrderedDict__markertKeyError(RRtdefaulttresult((s#/usr/lib64/python2.6/collections.pyR}s

cCs$||jo ||S|||<|S(sDod.setdefault(k[,d]) -> od.get(k,d), also set od[k]=d if k not in od((RRR2((s#/usr/lib64/python2.6/collections.pyt
setdefault�s
 
cCsV|ptd��nt|o
t|�n
t|��}|i|�}||fS(s�od.popitem() -> (k, v), return and remove a (key, value) pair.
Pairs are returned in LIFO order if last is true or FIFO order if false.

sdictionary is empty(R1tnexttreversedR+R(RRRR((s#/usr/lib64/python2.6/collections.pytpopitem�s
&cCswt|�t�f}||jodSd||<z7|pd|iifSd|ii|i�fSWd||=XdS(sod.__repr__() <==> repr(od)s...is%s()s%s(%r)N(tidt
_get_identt __class__t__name__R*(Rt
_repr_runningtcall_key((s#/usr/lib64/python2.6/collections.pyt__repr__�s

cCs�g}|D]}||||gq ~}t|�i�}x'tt��D]}|i|d�qMW|o|i|f|fS|i|ffS(s%Return state information for picklingN(tvarstcopyRRRR:(RR(R-R*t inst_dict((s#/usr/lib64/python2.6/collections.pyt
__reduce__ªs+cCs
|i|�S(s!od.copy() -> a shallow copy of od(R:(R((s#/usr/lib64/python2.6/collections.pyR@´scCs(|�}x|D]}|||<qW|S(sOD.fromkeys(S[, v]) -> New ordered dictionary with keys from S.
If not specified, the value defaults to None.

((tclstiterableRRR((s#/usr/lib64/python2.6/collections.pytfromkeys¸s
 cCsJt|t�o*ti||�ottt||��Sti||�S(s�od.__eq__(y) <==> od==y. Comparison to another OD is order-sensitive
while comparison to a regular mapping is order-insensitive.

(t
isinstanceRR%t__eq__tallt_imapt_eq(Rtother((s#/usr/lib64/python2.6/collections.pyRGÃs*cCs ||j S(sod.__ne__(y) <==> od!=y((RRK((s#/usr/lib64/python2.6/collections.pyt__ne__ÌscCs
t|�S(s@od.viewkeys() -> a set-like object providing a view on od's keys(tKeysView(R((s#/usr/lib64/python2.6/collections.pytviewkeysÒscCs
t|�S(s<od.viewvalues() -> an object providing a view on od's values(t
ValuesView(R((s#/usr/lib64/python2.6/collections.pyt
viewvaluesÖscCs
t|�S(sBod.viewitems() -> a set-like object providing a view on od's items(t ItemsView(R((s#/usr/lib64/python2.6/collections.pyt viewitemsÚsN($R;t
__module__t__doc__RR%RR R"R#R$R'R)R*R,R.R/tMutableMappingtupdateRtobjectR0RRR4tTrueR7R>RBR@t classmethodRERGRLRNRPRR(((s#/usr/lib64/python2.6/collections.pyRs: 
          


  cBs�e|e�o|idd�i�}neee|��}x�|f|D]w}ed�|D��ped|��ne |�oed|��n|di
�oed|��qOqOWe �}x`|D]X}|i d�oed |��n||joed
|��n|i
|�qÚWe|�}e|�id d �d
d!}did�|D��}did�e|�D��}de�} x.e|�D] \}
}| d||
f7} q³W|o | GHnededd|dede�} y | | UWn,ej
o } e| id| ��nX| |}
eed�o%eid
�iidd�|
_n|
S(s>Returns a new subclass of tuple with named fields.

>>> Point = namedtuple('Point', 'x y')
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessable by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)

t,t css,x%|]}|i�p
|djVqWdS(RN(tisalnum(t.0tc((s#/usr/lib64/python2.6/collections.pys <genexpr>ýs sWType names and field names can only contain alphanumeric characters and underscores: %rs2Type names and field names cannot be a keyword: %ris9Type names and field names cannot start with a number: %rRs/Field names cannot start with an underscore: %rs$Encountered duplicate field name: %rt'tiiÿÿÿÿs, cssx|]}d|VqWdS(s%s=%%rN((R]tname((s#/usr/lib64/python2.6/collections.pys <genexpr>s css)x"|]\}}d||fVqWdS(s %r: t[%d]N((R]tposRa((s#/usr/lib64/python2.6/collections.pys <genexpr>s sªclass %(typename)s(tuple):
'%(typename)s(%(argtxt)s)'

__slots__ = ()

_fields = %(field_names)r

def __new__(_cls, %(argtxt)s):
return _tuple.__new__(_cls, (%(argtxt)s))

@classmethod
def _make(cls, iterable, new=tuple.__new__, len=len):
'Make a new %(typename)s object from a sequence or iterable'
result = new(cls, iterable)
if len(result) != %(numfields)d:
raise TypeError('Expected %(numfields)d arguments, got %%d' %% len(result))
return result

def __repr__(self):
return '%(typename)s(%(reprtxt)s)' %% self

def _asdict(t):
'Return a new dict which maps field names to their values'
return {%(dicttxt)s}

def _replace(_self, **kwds):
'Return a new %(typename)s object replacing specified fields with new values'
result = _self._make(map(kwds.pop, %(field_names)r, _self))
if kwds:
raise ValueError('Got unexpected field names: %%r' %% kwds.keys())
return result

def __getnewargs__(self):
return tuple(self)

s( %s = _property(_itemgetter(%d))
t _itemgetterR;s
namedtuple_%st _propertyt_tuples:
t _getframet__main__(RFt
basestringtreplacetsplitttupletmaptstrRHt
ValueErrort
_iskeywordtisdigittsett
startswithtaddR
treprtjoint enumeratetlocalsR%Rctpropertyt SyntaxErrortmessagethasattrt_sysRft f_globalstgetRS(ttypenamet field_namestverboseRat
seen_namest numfieldstargtxttreprtxttdicttxtttemplatetit namespaceteR3((s#/usr/lib64/python2.6/collections.pyRßsN
 
 

  
%Rg(tloadstdumpstPointsx, ytxi
tyisx ycBs&eZdZed��Zd�ZRS(cCs|id|iddS(Nigà?(R�R�(R((s#/usr/lib64/python2.6/collections.pythypotPscCsd|i|i|ifS(Ns$Point: x=%6.3f y=%6.3f hypot=%6.3f(R�R�R�(R((s#/usr/lib64/python2.6/collections.pyt__str__Ss((R;RSt __slots__RxR�R�(((s#/usr/lib64/python2.6/collections.pyR�Nsiiiig@cBs/eZdZdZeei�Zed�Z RS(sHPoint class with optimized _make() and _replace() without error-checkingcKs|i||id|��S(NR�R�(R�R�(t_makeR~(Rt_mapR((s#/usr/lib64/python2.6/collections.pyt_replace]s((
R;RSRTR�RYRkt__new__R�RlR�(((s#/usr/lib64/python2.6/collections.pyR�Ysi iidtPoint3Dtzt TestResultssfailed attempted(R�()t__all__t_abcollt _collectionsRRtoperatorRRctkeywordRRotsysR|t itertoolsRRIRRJtthreadR R9t ImportErrort dummy_threadR%RtFalseRR;tcPickleR�R�RXR�tpR�t_fieldsR�RTtdoctestR�ttestmod(((s#/usr/lib64/python2.6/collections.pyt<module>s<
 
 Ì g
#