Your IP : 13.59.19.57
Current Path : /lib64/python2.7/ |
|
Current File : //lib64/python2.7/functools.pyo |
�
_Ofc@s\dZddlmZmZdZd
Zeed�Zeed�Zd �Zd
�Z dS(sEfunctools.py - Tools for working with functions and callable objects
i����(tpartialtreducet
__module__t__name__t__doc__t__dict__cCsax'|D]}t||t||��qWx0|D](}t||�jt||i��q1W|S(sUpdate 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)
(tsetattrtgetattrtupdate(twrappertwrappedtassignedtupdatedtattr((s!/usr/lib64/python2.7/functools.pytupdate_wrappers
&cCsttd|d|d|�S(s�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().
R
RR(RR(R
RR((s!/usr/lib64/python2.7/functools.pytwraps'scCs�idd�fdd�fdd�fdd�fgd 6dd
�fd d�fdd�fdd
�fgd6d d�fdd�fdd�fdd�fgd6dd�fdd�fdd�fd d�fgd6}tt|��}|t|�@}|std��nt|�}xU||D]I\}}||kr0||_tt|�j|_t|||�q0q0W|S(s6Class decorator that fills in missing ordering methodst__gt__cSs||kp||kS(N((tselftother((s!/usr/lib64/python2.7/functools.pyt<lambda>8tt__le__cSs||kp||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR9Rt__ne__cSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR:Rt__ge__cSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR;Rt__lt__cSs||kp||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR<RcSs||ko||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR=RcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR>RcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR?RcSs||kp||kS(N((RR((s!/usr/lib64/python2.7/functools.pyR@RcSs||kp||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRARcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRBRcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRCRcSs||kp||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRDRcSs||ko||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRERcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRFRcSs||kS(N((RR((s!/usr/lib64/python2.7/functools.pyRGRs6must define at least one ordering operation: < > <= >=( tsettdirt
ValueErrortmaxRRtintRR(tclstconverttdefined_methodstrootstroottopnametopfunc((s!/usr/lib64/python2.7/functools.pyttotal_ordering5s8 cs dtf�fd��Y}|S(s,Convert a cmp= function into a key= functiontKcs}eZdgZd�Z�fd�Z�fd�Z�fd�Z�fd�Z�fd�Z�fd�Z d�Z
RS( tobjcWs
||_dS(N(R'(RR'targs((s!/usr/lib64/python2.7/functools.pyt__init__Yscs�|j|j�dkS(Ni(R'(RR(tmycmp(s!/usr/lib64/python2.7/functools.pyR[scs�|j|j�dkS(Ni(R'(RR(R*(s!/usr/lib64/python2.7/functools.pyR]scs�|j|j�dkS(Ni(R'(RR(R*(s!/usr/lib64/python2.7/functools.pyt__eq___scs�|j|j�dkS(Ni(R'(RR(R*(s!/usr/lib64/python2.7/functools.pyRascs�|j|j�dkS(Ni(R'(RR(R*(s!/usr/lib64/python2.7/functools.pyRcscs�|j|j�dkS(Ni(R'(RR(R*(s!/usr/lib64/python2.7/functools.pyRescSstd��dS(Nshash not implemented(t TypeError(R((s!/usr/lib64/python2.7/functools.pyt__hash__gs(RRt __slots__R)RRR+RRRR-((R*(s!/usr/lib64/python2.7/functools.pyR&Ws (tobject(R*R&((R*s!/usr/lib64/python2.7/functools.pyt
cmp_to_keyUsN(RRR(R(
Rt
_functoolsRRtWRAPPER_ASSIGNMENTStWRAPPER_UPDATESRRR%R0(((s!/usr/lib64/python2.7/functools.pyt<module>s