python (3.11.7)

(root)/
lib/
python3.11/
__pycache__/
copy.cpython-311.pyc

e!FdZddlZddlZddlmZGddeZeZ	ddlm	Z	n
#e
$rdZ	YnwxYwgdZdZixZ
Zd	Zedeeeeeeeeeeeeejeeeeejej fD]Z!eee!<e"ed
dZ!e!eee!<e#jee#<e$jee$<e%jee%<e&jee&<e	
e	jee	<[[!dgfdZ'ixZ(ZdZ)e)eed<e)eee<e)eee<e)ee<e)ee<e)ee<e)ee<e)ee<e)ee<e)eej*<e)ee<e)ee<e)eej<e)eej<e)eej <e)ee<e'fd
Z+e+ee#<e'fdZ,e,ee<e'fdZ-e-ee$<e	e-ee	<dZ.e.eej/<[dZ0	de'ddZ1[[[	dS)aGeneric (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 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.
N)dispatch_tableceZdZdS)ErrorN)__name__
__module____qualname__8/BuggyBox/python/3.11.7/bootstrap/lib/python3.11/copy.pyrr7sDr
r)PyStringMap)rcopydeepcopyct|}t|}|r||St|trt	|St|dd}|||St
j|}|||}nOt|dd}||d}n0t|dd}|r|}ntd|zt|tr|St|dg|RS)zlShallow copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    __copy__N
__reduce_ex__
__reduce__z%un(shallow)copyable object of type %s)type_copy_dispatchget
issubclass_copy_immutablegetattrrr
isinstancestr_reconstruct)xclscopierreductorrvs     rr
r
Bs2q''C



$
$F
vayy#t"q!!!
S*d
+
+F
vayy!#&&H
Xa[[1ot44!BBq,55H
KXZZCcIJJJ"c4%"%%%%r
c|SNr	)rs rrrkHr
CodeTypec|i}t|}|||}||ur|St|}t|}|
|||}nt	|trt||}nt
|dd}|||}ntj|}|r||}nOt
|dd}||d}n0t
|dd}|r|}ntd|zt|tr|}nt||g|R}||ur|||<t|||S)ziDeep copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    N__deepcopy__rrrz"un(deep)copyable object of type %s)
idrr_deepcopy_dispatchr_deepcopy_atomicrrrrrr_keep_alive)	rmemo_nildyrrr r!s	         rrrs|
1ADA}}
q''C

#
#C
(
(F
F1dOOc4  	3 D))AAQ55F!F4LL)-c22L!!BB&q/4@@H+%Xa[[#*1lD#A#A#L!)BB"' Ds J#L#LLb#&&3AA$Q2r222A	zzQAtHr
c|Sr#r	rr,s  rr*r*r$r
cpg}||t|<|j}|D]}|||||Sr#)r(append)rr,rr/r3as      r_deepcopy_listr5sP
ADAK
XF
""xx4  !!!!Hr
cfd|D}	t|S#t$rYnwxYwt||D]\}}||urt|}n|}|S)Nc(g|]}|Sr	r	).0r4rr,s  r
<listcomp>z#_deepcopy_tuple.<locals>.<listcomp>s%&&&q!T		&&&r
)r(KeyErrorziptuple)rr,rr/kjs ``   r_deepcopy_tupler?s&&&&&A&&&A
BqEE{



Aq		1A::aAE
Hs(
55ci}||t|<|D]\}}|||||||<|Sr#)r(items)rr,rr/keyvalues      r_deepcopy_dictrDs[
ADAKggii77
U!)%!6!6((3

Hr
cdt||jt|j|Sr#)r__func__r__self__r1s  r_deepcopy_methodrHs(4771:x
D99:::r
c	|t||dS#t$r|g|t|<YdSwxYw)aMKeeps 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(r3r:r1s  rr+r+s]RXXa     sRXXs(,A
A
)rcdu}|r|rfd|D}||}	|r|	t|<||r|}t|	dr|	|nyt|trt|dkr|\}}
nd}
||	j||
+|
D]\}}t|	|||C|r'|D]#}
|
}
|	
|
$n|D]}
|	
|
|5|r&|D]"\}}|}|}||	|<#n
|D]
\}}||	|<|	S)Nc30K|]}|VdSr#r	)r8argrr,s  r	<genexpr>z_reconstruct.<locals>.<genexpr>s/44d##444444r
__setstate__)r(hasattrrNrr<len__dict__updaterAsetattrr3)rr,funcargsstatelistiterdictiterrdeepr/	slotstaterBrCitems `     `      rrrstD5544444t444dARUU	*HUD))E1n%%	+
NN5!!!!%''
!CJJ!OO#( yy 	 
!!%((($"+//"3"3++JCAsE****	 

xd++
!

	&


UhsD)) --#

'


U#Hr
)NNN)2__doc__typesweakrefcopyregr	Exceptionrerrororg.python.corerImportError__all__r
rr.rrintfloatboolcomplexrr<bytes	frozensetrangeslicepropertyBuiltinFunctionTypeEllipsisNotImplementedFunctionTypereftrlistdictset	bytearrayrr)r*r%r5r?rDrH
MethodTyper+rr	r
r<module>rzsm00d
""""""					I			
+++++++KKK(
'
'$&$&$&N


$t**c5$e
D%

#TT(^^TT.5I5I

gk
+AAaDDGE:t$$=AaD
)$
)$	#~) %AkNq2
2
2
2
hQ


 $$t**
$$$x..*$$~	#%
$
'
%	#$%.
$%/%(%!'+(%-



$&.



%%-



$#AkN;;;&%"6:+
%+
+
+
+
+
Z
7KKKs)33