ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/copy_reg.pyo |
Ñò
nÄMc @ sØ d Z d d k l Z d d d d d g Z h Z d d „ Z d „ Z y e Wn e
j
o n Xd
„ Z e e e e ƒ d „ Z d Z
d „ Z d „ Z d „ Z h Z h Z h Z d „ Z d „ Z d „ Z d S( 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 ClassTypet picklet constructort
add_extensiont remove_extensiont clear_extension_cachec C sl t | ƒ t j o t d ƒ ‚ n t | d ƒ p t d ƒ ‚ n | t | <| d j o t | ƒ n d S( Ns- copy_reg is not intended for use with classest __call__s$ reduction functions must be callable( t typet
_ClassTypet TypeErrort hasattrt dispatch_tablet NoneR ( t ob_typet pickle_functiont constructor_ob( ( s /usr/lib/python2.6/copy_reg.pyR s
c C s$ t | d ƒ p t d ƒ ‚ n d S( NR s constructors must be callable( R
R ( t object( ( s /usr/lib/python2.6/copy_reg.pyR s c C s t | i | i f f S( N( t complext realt imag( t c( ( s /usr/lib/python2.6/copy_reg.pyt pickle_complex' s c C s] | t j o t i | ƒ } n: | i | | ƒ } | i t i j o | i | | ƒ n | S( N( R t __new__t __init__( t clst baset statet obj( ( s /usr/lib/python2.6/copy_reg.pyt _reconstructor. s
i i c C s5 x>