;ō
ûŌCc           @   s  d  k  Z  d Z e d  Z h  Z Z d   Z e e e  i <e e e  i <e e e  i	 <e e e  i
 <e e e  i <e e e  i <e e e  i <e e e  i <d   Z e e e  i <d   Z e e e  i <d   Z e e e  i <d   Z e e e  i <[ [  d   Z e d	 j o e   n d  S(
   Ns   copy.CopyErrorc         C   sĖ   | t j o
 h  } n t |   } | i |  o | | Sn y t t |   } WnU t	 j
 oI y |  i
 } Wn& t j
 o t d t |    n X| |  } n X| |  |  } | | | <| Sd  S(   Ns   uncopyable object of type %s(   s   memos   Nones   ids   xs   ds   has_keys   _copy_dispatchs   types   copierfunctions   KeyErrors   __copy__s   copiers   AttributeErrors	   CopyErrors   y(   s   xs   memos   ds   copiers   ys   copierfunction(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   copy   s     

c         C   s   |  Sd  S(   N(   s   x(   s   xs   memo(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   _copy_atomic!   s    c         C   sE   g  } | | t |   <x$ |  D] } | i t | |   q W| Sd  S(   N(   s   ys   memos   ids   xs   as   appends   copy(   s   xs   memos   as   y(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys
   _copy_list,   s     c         C   sĢ   g  } x$ |  D] } | i t | |   q Wt |   } y | | SWn t j
 o n Xx= t	 t
 |    D]) } |  | | | j	 o t |  Sqn qn W|  Sd  S(   N(   s   ys   xs   as   appends   copys   memos   ids   ds   KeyErrors   ranges   lens   is   tuple(   s   xs   memos   as   ds   is   y(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   _copy_tuple4   s      c         C   sU   h  } | | t |   <x4 |  i   D]& } t |  | |  | t | |  <q# W| Sd  S(   N(   s   ys   memos   ids   xs   keyss   keys   copy(   s   xs   memos   keys   y(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys
   _copy_dictC   s     $c         C   s  t  |  d  o |  i   Sn t  |  d  o |  i   } t | |  } n f  } t |  i |  } | | t
 |   <t  |  d  o |  i   } n
 |  i } t | |  } | i  d  o | i |  n, x( | i   D] } t | | | |  qÛ W| Sd  S(   Ns   __copy__s   __getinitargs__s   __getstate__s   __setstate__(   s   hasattrs   xs   __copy__s   __getinitargs__s   argss   copys   memos   applys	   __class__s   ys   ids   __getstate__s   states   __dict__s   __setstate__s   keyss   keys   setattr(   s   xs   memos   argss   states   keys   y(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys
   _copy_instK   s$    	 c          C   s  t  d d f d d g h  d d <f  g  h  g } t |  } | | j GHd f  d     Y}  |  d  } | i |  t |  } | | j GH| GH| GH| i h  | d | <d	 | d
 < t |  } d  k	 } t
 | i	 |  GHt
 | i	 |  GHt
 | i	 |  GHt
 | i	 |  GHd  S(   Ni   l    f3.1400000000000001s   abcs   ABCs   Cc           B   s2   t  Z e d  Z d   Z d   Z e d  Z RS(   Nc         C   s2   d |  _ | |  _ t d  |  _ |  i i   d  S(   Ni   s   copy.py(   s   selfs   as   args   opens   fps   close(   s   selfs   arg(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   __init__i   s    		c         C   s    h  d |  i <d |  i <Sd  S(   Ns   as   arg(   s   selfs   as   arg(   s   self(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   __getstate__n   s    c         C   s/   x( | i   D] } t |  | | |  q Wd  S(   N(   s   states   keyss   keys   setattrs   self(   s   selfs   states   key(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   __setstate__p   s     c         C   s/   |  i t |  i |   } |  i | _ | Sd  S(   N(   s   selfs	   __class__s   copys   args   memos   news   a(   s   selfs   memos   new(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   __copy__s   s    (   s   __name__s
   __module__s   Nones   __init__s   __getstate__s   __setstate__s   __copy__(    (    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   Ch   s   		s   argument sketchs   xyzi   (   s   Nones   ls   copys   l1s   Cs   cs   appends   l2s   l3s   reprs   map(   s   Cs   cs   reprs   ls   l2s   l3s   l1(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   _testd   s"    0'	s   __main__(   s   typess	   CopyErrors   Nones   copys   _copy_dispatchs   ds   _copy_atomics   NoneTypes   IntTypes   LongTypes	   FloatTypes
   StringTypes   CodeTypes   TypeTypes
   XRangeTypes
   _copy_lists   ListTypes   _copy_tuples	   TupleTypes
   _copy_dicts   DictionaryTypes
   _copy_insts   InstanceTypes   _tests   __name__(   s   _copy_tuples   ds   _copy_atomics	   CopyErrors   _copy_dispatchs
   _copy_insts   _tests   copys
   _copy_lists   typess
   _copy_dict(    (    s:   /data/ftp.python.org/pub/new-www/workshops/1994-11/copy.pys   ?   s0   	
						!