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/copy.pyo
Size11.31 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:32
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@s�dZddkZddklZdefd��YZeZyddklZWne j
o
dZnXdddgZ d �Z hZ
Zd
�ZxWed�eeeeeeeeeeieiee�eifD]Zeee<qßWx;dD]3Zeeed�Zedj oeee<qúqúWd�Z x!e!e"e#fD]Ze ee<qJWd�Z$edj oe$ee<nd�Z%e%eei&<[dgd�Z'hZ(Zd�Z)e)eed�<e)eee�<e)ee<e)ee<e)ee<e)ee<ye)ee*<Wne+j
onXe)ee<ye)ee,<Wne+j
onXye)eei-<Wne.j
onXe)ee<e)ee<e)eei<e)eei<e)eei<d�Z/e/ee!<d�Z0e0ee<d�Z1e1ee"<edj oe1ee<nd�Z2e2e(ei3<d�Z4d�Z5e5eei&<dd�Z6[[ddd��YZ7d�Z8e9djo e8�ndS( sÍGeneric (shallow and deep) copying operations.

Interface summary:

import copy

x = copy.copy(y) # make a shallow copy of y
x = copy.deepcopy(y) # make a deep copy of y

For module specific errors, copy.Error is raised.

The difference between shallow and deep copying is only relevant for
compound objects (objects that contain other objects, like lists or
class instances).

- A shallow copy constructs a new compound object and then (to the
extent possible) inserts *the same objects* into it that the
original contains.

- A deep copy constructs a new compound object and then, recursively,
inserts *copies* into it of the objects found in the original.

Two problems often exist with deep copy operations that don't exist
with shallow copy operations:

a) recursive objects (compound objects that, directly or indirectly,
contain a reference to themselves) may cause a recursive loop

b) because deep copy copies *everything* it may copy too much, e.g.
administrative data structures that should be shared even between
copies

Python's deep copy operation avoids these problems by:

a) keeping a table of objects already copied during the current
copying pass

b) letting user-defined classes override the copying operation or the
set of components copied

This version does not copy types like module, class, function, method,
nor stack trace, stack frame, nor file, socket, window, nor array, nor
any similar types.

Classes can use the same interfaces to control copying that they use
to control pickling: they can define methods called __getinitargs__(),
__getstate__() and __setstate__(). See the documentation for module
"pickle" for information on these methods.
iÿÿÿÿN(tdispatch_tabletErrorcBseZRS((t__name__t
__module__(((s/usr/lib64/python2.6/copy.pyR6s(t PyStringMaptcopytdeepcopycCsæt|�}ti|�}|o ||�St|dd�}|o ||�Sti|�}|o||�}n`t|dd�}|o|d�}n7t|dd�}|o
|�}ntd|��t||d�S(slShallow copy operation on arbitrary Python objects.

See the module's __doc__ string for more info.
t__copy__t
__reduce_ex__it
__reduce__s%un(shallow)copyable object of type %siN(ttypet_copy_dispatchtgettgetattrtNoneRRt _reconstruct(txtclstcopiertreductortrv((s/usr/lib64/python2.6/copy.pyRAs$   
cCs|S(N((R((s/usr/lib64/python2.6/copy.pyt_copy_immutabledst ComplexTypet UnicodeTypetCodeTypecCst|�|�S(N(R
(R((s/usr/lib64/python2.6/copy.pyt_copy_with_constructorpscCs
|i�S(N(R(R((s/usr/lib64/python2.6/copy.pyt_copy_with_copy_methoduscCs½t|d�o |i�St|d�o|i�}|i|�}nt�}|i|_t|d�o|i�}n
|i}t|d�o|i|�n|ii|�|S(NRt__getinitargs__t __getstate__t __setstate__( thasattrRRt __class__t _EmptyClassRt__dict__Rtupdate(Rtargstytstate((s/usr/lib64/python2.6/copy.pyt
_copy_instzs     c
Cs£|djo
h}nt|�}|i||�}||j o|St|�}ti|�}|o|||�}n
yt|t�}Wntj
o
d}nX|ot||�}nÄt|dd�}|o||�}n�t i|�}|o||�} n`t|dd�}|o|d�} n7t|dd�}|o
|�} nt
d|��t || d|�}|||<t ||�|S( siDeep copy operation on arbitrary Python objects.

See the module's __doc__ string for more info.
it __deepcopy__RiR s"un(deep)copyable object of type %siN(
RtidR R
t_deepcopy_dispatcht
issubclasst TypeErrort_deepcopy_atomicR
RRRt _keep_alive(
Rtmemot_niltdR$RRtisscRR((s/usr/lib64/python2.6/copy.pyR�sD

 
  



cCs|S(N((RR.((s/usr/lib64/python2.6/copy.pyR,ÅscCsAg}||t|�<x$|D]}|it||��qW|S(N(R(tappendR(RR.R$ta((s/usr/lib64/python2.6/copy.pyt_deepcopy_listàs c
Cs²g}x$|D]}|it||��q
Wt|�}y ||SWntj
onXxFtt|��D],}||||j ot|�}PqnqnW|}|||<|S(N(R2RR(tKeyErrortrangetlenttuple(RR.R$R3R0ti((s/usr/lib64/python2.6/copy.pyt_deepcopy_tupleès"    
cCsSh}||t|�<x6|i�D](\}}t||�|t||�<q#W|S(N(R(t iteritemsR(RR.R$tkeytvalue((s/usr/lib64/python2.6/copy.pyt_deepcopy_dictûs 
 cCs(t|�|it|i|�|i�S(N(R
tim_funcRtim_selftim_class(RR.((s/usr/lib64/python2.6/copy.pyt_deepcopy_methodscCsHy|t|�i|�Wn&tj
o|g|t|�<nXdS(sMKeeps a reference to the object x in the memo.

Because we remember objects by their id, we have
to assure that possibly temporary objects are kept
alive by referencing them.
We store a reference at the id of the memo, which should
normally not be used unless someone tries to deepcopy
the memo itself...
N(R(R2R5(RR.((s/usr/lib64/python2.6/copy.pyR- s
cCsît|d�o|i|�St|d�o.|i�}t||�}|i|�}nt�}|i|_||t|�<t|d�o|i�}n
|i}t||�}t|d�o|i |�n|ii
|�|S(NR'RRR( RR'RRRR R(RR!RR"(RR.R#R$R%((s/usr/lib64/python2.6/copy.pyt_deepcopy_insts"    c
Csgt|t�o|S|djo
h}nt|�}|d \}}|djo|d}nh}|djo|d}nd}|djo|d} nd} |ot||�}n||�}
|
|t|�<|dj o<x9|D]-} |ot| |�} n|
i| �qõWn| dj oNxK| D]?\} }
|o"t| |�} t|
|�}
n|
|
| <q>Wn|o×|ot||�}nt|
d�o|
i|�qct|t �o#t|�djo|\}}nd}|dj o|
i
i |�n|dj o1x.|i �D]\} }
t
|
| |
�q;Wqcn|
S(NiiiR(t
isinstancetstrRR7RR(R2RRR8R!R"R;tsetattr(RtinfotdeepR.tntcallableR#R%tlistitertdictiterR$titemR<R=t slotstate((s/usr/lib64/python2.6/copy.pyR0s^

 


 

 #


R cBseZRS((RR(((s/usr/lib64/python2.6/copy.pyR jsc CsÉdddddd
ddghdd6dghg }t|�}||jGHtt|�}||jGHt|�}||jGHddd��Y}|d �}|i|�t|�}||jGH|GH|GHt|�}||jGH|GH|GH|ih||d6|d
d 6�t|�}d dk}t|i|�GHt|i|�GHt|i|�GHt|i|�GHt|�}d dk}t|i|�GHt|i|�GHt|i|�GHt|i|�GHdS(Nilg�ëQ¸ @txyzzytabctABCtCcBs2eZdd�Zd�Zd�Zdd�ZRS(cSsbd|_||_tdjoddk}|id}nt}t|�|_|ii�dS(Nit__main__iÿÿÿÿi( R3targRtsystargvt__file__topentfptclose(tselfRTRUtfile((s/usr/lib64/python2.6/copy.pyt__init__ws  
 cSsh|id6|id6S(NR3RT(R3RT(R[((s/usr/lib64/python2.6/copy.pyR�scSs1x*|i�D]\}}t|||�q
WdS(N(R;RF(R[R%R<R=((s/usr/lib64/python2.6/copy.pyR�s
cSs+|it|i|��}|i|_|S(N(RRRTR3(R[R.tnew((s/usr/lib64/python2.6/copy.pyR'�s N(RRRR]RRR'(((s/usr/lib64/python2.6/copy.pyRRvs
 sargument sketchitxyziÿÿÿÿ(il(((RRtmapRR2trepr(tltl1RRtctl2tl3Ra((s/usr/lib64/python2.6/copy.pyt_testms@      
    #    RS(s ComplexTypes UnicodeTypesCodeType((:t__doc__ttypestcopy_regRt ExceptionRterrortorg.python.coreRt ImportErrorRt__all__RR R0RR
tinttlongtfloattboolRER8t frozensettxranget ClassTypetBuiltinFunctionTypetEllipsist FunctionTypetttnameR
RtlisttdicttsetRR&t InstanceTypeRR)R,tcomplext NameErrortunicodeRtAttributeErrorR4R:R>RBt
MethodTypeR-RCRR RgR(((s/usr/lib64/python2.6/copy.pyt<module>1s    !
 

  
 
3
 









 
 
 

 
  
 5 5