;
تق"Ic               @   sJ   d  Z  d d l m Z m Z d
 Z d Z e e d  Z e e d  Z d	 S(   uE   functools.py - Tools for working with functions and callable objects
i    (   u   partialu   reduceu
   __module__u   __name__u   __doc__u   __dict__c             C   sa   x' | D] } t  |  | t | |   q Wx0 | D]( } t |  |  j t | | i    q1 W|  S(   u  Update a wrapper function to look like the wrapped function

       wrapper is the function to be updated
       wrapped is the original function
       assigned is a tuple naming the attributes assigned directly
       from the wrapped function to the wrapper function (defaults to
       functools.WRAPPER_ASSIGNMENTS)
       updated is a tuple naming the attributes of the wrapper that
       are updated with the corresponding attribute from the wrapped
       function (defaults to functools.WRAPPER_UPDATES)
    (   u   setattru   getattru   update(   u   wrapperu   wrappedu   assignedu   updatedu   attr(    (    u&   /mit/python/lib/python3.0/functools.pyu   update_wrapper   s      &c             C   s   t  t d |  d | d | S(   u  Decorator factory to apply update_wrapper() to a wrapper function

       Returns a decorator that invokes update_wrapper() with the decorated
       function as the wrapper argument and the arguments to wraps() as the
       remaining arguments. Default arguments are as for update_wrapper().
       This is a convenience function to simplify applying partial() to
       update_wrapper().
    u   wrappedu   assignedu   updated(   u   partialu   update_wrapper(   u   wrappedu   assignedu   updated(    (    u&   /mit/python/lib/python3.0/functools.pyu   wraps'   s    N(   u
   __module__u   __name__u   __doc__(   u   __dict__(   u   __doc__u
   _functoolsu   partialu   reduceu   WRAPPER_ASSIGNMENTSu   WRAPPER_UPDATESu   update_wrapperu   wraps(    (    (    u&   /mit/python/lib/python3.0/functools.pyu   <module>   s   