�`^c@s/dZddlZdejfd��YZdS(sAA more or less complete user-defined wrapper around list objects.i�NtUserListcBs:eZd!d�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z
d�Zd �Zd!Z
d
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�ZeZd�Zd�Zd�Zdd�Zd�Zd�Z d�Z!d�Z"d�Z#d �Z$RS("cCssg|_|dk rot|�t|j�kr=||j(qot|t�r]|j|j(qot|�|_ndS(N(tdatatNonettypet
isinstanceRtlist(tselftinitlist((s/sys/lib/python2.7/UserList.pyt__init__s
cCs
t|j�S(N(treprR(R((s/sys/lib/python2.7/UserList.pyt__repr__scCs|j|j|�kS(N(Rt_UserList__cast(Rtother((s/sys/lib/python2.7/UserList.pyt__lt__scCs|j|j|�kS(N(RR(RR((s/sys/lib/python2.7/UserList.pyt__le__scCs|j|j|�kS(N(RR(RR((s/sys/lib/python2.7/UserList.pyt__eq__scCs|j|j|�kS(N(RR(RR((s/sys/lib/python2.7/UserList.pyt__ne__scCs|j|j|�kS(N(RR(RR((s/sys/lib/python2.7/UserList.pyt__gt__scCs|j|j|�kS(N(RR(RR((s/sys/lib/python2.7/UserList.pyt__ge__scCst|t�r|jS|SdS(N(RRR(RR((s/sys/lib/python2.7/UserList.pyt__castscCst|j|j|��S(N(tcmpRR(RR((s/sys/lib/python2.7/UserList.pyt__cmp__scCs
||jkS(N(R(Rtitem((s/sys/lib/python2.7/UserList.pyt__contains__scCs
t|j�S(N(tlenR(R((s/sys/lib/python2.7/UserList.pyt__len__scCs|j|S(N(R(Rti((s/sys/lib/python2.7/UserList.pyt__getitem__scCs||j|<dS(N(R(RRR((s/sys/lib/python2.7/UserList.pyt__setitem__ scCs|j|=dS(N(R(RR((s/sys/lib/python2.7/UserList.pyt__delitem__!scCs5t|d�}t|d�}|j|j||!�S(Ni(tmaxt __class__R(RRtj((s/sys/lib/python2.7/UserList.pyt__getslice__"scCs�t|d�}t|d�}t|t�rC|j|j||+nAt|t|j��rn||j||+nt|�|j||+dS(Ni(RRRRRR(RRR R((s/sys/lib/python2.7/UserList.pyt__setslice__%scCs/t|d�}t|d�}|j||5dS(Ni(RR(RRR ((s/sys/lib/python2.7/UserList.pyt__delslice__-scCspt|t�r&|j|j|j�St|t|j��rR|j|j|�S|j|jt|��SdS(N(RRRRRR(RR((s/sys/lib/python2.7/UserList.pyt__add__0s
cCspt|t�r&|j|j|j�St|t|j��rR|j||j�S|jt|�|j�SdS(N(RRRRRR(RR((s/sys/lib/python2.7/UserList.pyt__radd__7s
cCsgt|t�r$|j|j7_n?t|t|j��rN|j|7_n|jt|�7_|S(N(RRRRR(RR((s/sys/lib/python2.7/UserList.pyt__iadd__>scCs|j|j|�S(N(RR(Rtn((s/sys/lib/python2.7/UserList.pyt__mul__FscCs|j|9_|S(N(R(RR'((s/sys/lib/python2.7/UserList.pyt__imul__IscCs|jj|�dS(N(Rtappend(RR((s/sys/lib/python2.7/UserList.pyR*LscCs|jj||�dS(N(Rtinsert(RRR((s/sys/lib/python2.7/UserList.pyR+Msi�cCs|jj|�S(N(Rtpop(RR((s/sys/lib/python2.7/UserList.pyR,NscCs|jj|�dS(N(Rtremove(RR((s/sys/lib/python2.7/UserList.pyR-OscCs|jj|�S(N(Rtcount(RR((s/sys/lib/python2.7/UserList.pyR.PscGs|jj||�S(N(Rtindex(RRtargs((s/sys/lib/python2.7/UserList.pyR/QscCs|jj�dS(N(Rtreverse(R((s/sys/lib/python2.7/UserList.pyR1RscOs|jj||�dS(N(Rtsort(RR0tkwds((s/sys/lib/python2.7/UserList.pyR2SscCs9t|t�r%|jj|j�n|jj|�dS(N(RRRtextend(RR((s/sys/lib/python2.7/UserList.pyR4TsN(%t__name__t
__module__RRR
R
RRRRRRRt__hash__RRRRRR!R"R#R$R%R&R(t__rmul__R)R*R+R,R-R.R/R1R2R4(((s/sys/lib/python2.7/UserList.pyRsD
(t__doc__tcollectionstMutableSequenceR(((s/sys/lib/python2.7/UserList.pyt<module>s
|