‡Æ
ÏMö9c       sW   d  Z  d k l Z h  Z h  Z e d „ Z d „  Z d „  Z	 e e
 d ƒ e	 e ƒ 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.
(   s	   ClassTypec    sj   t  |  ƒ t j o t d ƒ ‚ n t | ƒ o t d ƒ ‚ n | t |  <| t j	 o t	 | ƒ n d  S(   Ns-   copy_reg is not intended for use with classess$   reduction functions must be callable(
   s   types   ob_types
   _ClassTypes	   TypeErrors   callables   pickle_functions   dispatch_tables   constructor_obs   Nones   constructor(   s   ob_types   pickle_functions   constructor_obs%   /mit/python/lib/python2.0/copy_reg.pys   pickle s    
c    s,   t  |  ƒ o t d ƒ ‚ n d t |  <d  S(   Ns   constructors must be callablei   (   s   callables   objects	   TypeErrors   safe_constructors(   s   objects%   /mit/python/lib/python2.0/copy_reg.pys   constructor s    c    s   t  |  i |  i f f Sd  S(   N(   s   complexs   cs   reals   imag(   s   cs%   /mit/python/lib/python2.0/copy_reg.pys   pickle_complex s    x0.01.0N(   s   __doc__s   typess	   ClassTypes
   _ClassTypes   dispatch_tables   safe_constructorss   Nones   pickles   constructors   pickle_complexs   types   complex(    s%   /mit/python/lib/python2.0/copy_reg.pys   ? s   		