HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python3.5/__pycache__/copy.cpython-35.pyc


Fa"@scdZddlZddlZddlmZddlZGdddeZeZyddl	m
Z
Wnek
rdZ
YnXdddgZd	dZ
iZZd
dZxWedeeeeeeeeeejeeejejfD]Zeee<qWeeddZedk	r8eee<x6d$D].Z eee dZedk	r?eee<q?WddZ!x!e"e#e$fD]Ze!ee<qWddZ%e
dk	re%ee
<[dgddZ&iZ'ZddZ(e(eed<e(eee<e(ee<e(ee<e(ee<ye(ee)<Wne*k
rNYnXe(ee<e(ee<ye(eej+<Wne,k
rYnXe(ee<e(eej<e(eej<e(eej<ddZ-e-ee"<ddZ.e.ee<ddZ/e/ee#<e
dk	re/ee
<ddZ0e0e'ej1<ddZ2dd d!Z3[[Gd"d#d#Z4dS)%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 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.
N)dispatch_tablec@seZdZdS)ErrorN)__name__
__module____qualname__rr/usr/lib/python3.5/copy.pyr8sr)PyStringMapcopydeepcopycCst|}tj|}|r+||Syt|t}Wntk
rXd}YnX|rit|St|dd}|r||Stj|}|r||}n[t|dd}|r|d}n4t|dd}|r|}ntd|t	||dS)	zlShallow copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    F__copy__N
__reduce_ex__
__reduce__z%un(shallow)copyable object of type %sr)
type_copy_dispatchget
issubclass	TypeError_copy_immutablegetattrrr_reconstruct)xclscopierisscreductorrvrrrr
Cs0



cCs|S)Nr)rrrrrnsrCodeTypecomplexunicodecCst||S)N)r)rrrr_copy_with_constructor}sr!cCs
|jS)N)r
)rrrr_copy_with_copy_methodsr"c

Cs|dkri}t|}|j||}||k	r@|St|}tj|}|rs|||}nyt|t}Wntk
rd}YnX|rt||}nt|dd}|r||}ntj|}|r||}	n[t|dd}|r+|d}	n4t|dd}|rO|}	nt	d|t
||	d|}||k	r|||<t|||S)	ziDeep copy operation on arbitrary Python objects.

    See the module's __doc__ string for more info.
    Nr__deepcopy__r
rrz"un(deep)copyable object of type %s)idrr_deepcopy_dispatchrr_deepcopy_atomicrrrr_keep_alive)
rmemoZ_nildyrrrrrrrrrsF



cCs|S)Nr)rr)rrrr'sr'cCsAg}||t|<x$|D]}|jt||qW|S)N)r%appendr)rr)r+arrr_deepcopy_lists

r.csfdd|D}yt|SWntk
r?YnXx<t||D]%\}}||k	rPt|}PqPW|}|S)Ncsg|]}t|qSr)r).0r-)r)rr
<listcomp>s	z#_deepcopy_tuple.<locals>.<listcomp>)r%KeyErrorziptuple)rr)r+kjr)r)r_deepcopy_tuples
r6cCsSi}||t|<x6|jD](\}}t|||t||<q#W|S)N)r%itemsr)rr)r+keyvaluerrr_deepcopy_dicts
 r:cCs"t||jt|j|S)N)r__func__r__self__)rr)rrr_deepcopy_methodsr=cCsGy|t|j|Wn%tk
rB|g|t|<YnXdS)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%r,r1)rr)rrrr(s

r(cCs[t|tr|St|ts(t|dkr:i}t|}|dksXt|dd\}}|dkr|d}nd}|dkr|d}nd}|dkr|d}	nd}	|rt||}||}
|
|t|<|dk	r|rt||}t|
dr<|
j|nt|trlt|dkrl|\}}nd}|dk	r|
j	j
||dk	rx*|jD]\}}
t|
||
qW|dk	rx0|D](}|rt||}|
j
|qW|	dk	rWxB|	D]:\}}
|rIt||}t|
|}
|
|
|<qW|
S)Nr__setstate__)r>r?rr@)
isinstancestrr3AssertionErrorlenrr%hasattrrA__dict__updater7setattrr,)rinfoZdeepr)ncallableargsstateZlistiterZdictiterr+Z	slotstater8r9itemrrrr
s\


!
rc@seZdZdS)_EmptyClassN)rrrrrrrrPIsrP)rr )5__doc__typesweakrefcopyregrbuiltins	ExceptionrerrorZorg.python.corer	ImportError__all__r
rr*rrintfloatboolrCr3bytes	frozensetrangeBuiltinFunctionTypeEllipsisFunctionTypereftrnamer!listdictsetr"rr&r'r	NameErrorrAttributeErrorr.r6r:r=
MethodTyper(rrPrrrr<module>1s
)



5
















7