Ñò ZÐKc @sSdZddkZddgZd„Zd„Zd„Zd\ZZZZ d „Z d „Z d„Z d„Z e d„Zddded„d„d„e d„Zed„d„d„e d„Zedjo|ddkZdd„Zei eiƒGHe eiƒGHei eƒGHe eƒGHeiei eƒŒGHee eƒŒGHndS(sÛSubset of inspect module from upstream python We use this instead of upstream because upstream inspect is slow to import, and significanly contributes to numpy import times. Importing this copy has almost no overhead. iÿÿÿÿNt getarspect formatargspeccCst|tiƒS(sªReturn true if the object is an instance method. Instance method objects provide these attributes: __doc__ documentation string __name__ name with which this method was defined im_class class object in which this method belongs im_func function object containing implementation of method im_self instance to which this method is bound, or None(t isinstancettypest MethodType(tobject((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pytismethod s cCst|tiƒS(sReturn true if the object is a user-defined function. Function objects provide these attributes: __doc__ documentation string __name__ name with which this function was defined func_code code object containing compiled function bytecode func_defaults tuple of any default values for arguments func_doc (same as __doc__) func_globals global namespace in which this function was defined func_name (same as __name__)(RRt FunctionType(R((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyt isfunctions cCst|tiƒS(suReturn true if the object is a code object. Code objects provide these attributes: co_argcount number of arguments (not including * or ** args) co_code string of raw compiled bytecode co_consts tuple of constants used in the bytecode co_filename name of file in which this code object was created co_firstlineno number of first line in Python source code co_flags bitmap: 1=optimized | 2=newlocals | 4=*arg | 8=**arg co_lnotab encoded mapping of line numbers to bytecode indices co_name name with which this code object was defined co_names tuple of names of local variables co_nlocals number of local variables co_stacksize virtual machine stack space required co_varnames tuple of names of arguments and local variables(RRtCodeType(R((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pytiscode%siiiicCsot|ƒptdƒ‚n|i}|i}|i}t|| ƒ}d}x½t|ƒD]¯}||d d jo”ggg}}} xk|t|ƒjoWt||ƒ} |d}| t i jo)t i | } t||ƒt||dƒd} |d}| d jo|i | ƒ| i | ƒqó| d jo°|i || ƒ|p|dg|d™sN(ttypeRtListTypet TupleTypetmap(RtconvertR<((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyR?–scCsd|S(t*((tname((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRCŸscCsd|S(s**((RJ((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRC scCsdt|ƒS(t=(trepr(R,((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRC¡sc Csôg} |ot|ƒt|ƒ} nxmtt|ƒƒD]Y} t|| ||ƒ} |o)| | jo| ||| | ƒ} n| i| ƒq:W|dj o| i||ƒƒn|dj o| i||ƒƒnddi| ƒdS(sgFormat an argument spec from the 4 values returned by getargspec. The first four arguments are (args, varargs, varkw, defaults). The other four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments.R:s, R;N(RRR?RRR<( R%R.R/tdefaultst formatargt formatvarargst formatvarkwt formatvalueR<tspecst firstdefaultR'tspec((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRs   cCsd|S(RI((RJ((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRC¹scCsd|S(s**((RJ((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRCºscCsdt|ƒS(RK(RL(R,((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRC»sc CsÂ|||d„} g} x7tt|ƒƒD]#} | it|| | |ƒƒq+W|o%| i||ƒ|||ƒƒn|o%| i||ƒ|||ƒƒndti| dƒdS(sfFormat an argument spec from the 4 values returned by getargvalues. The first four arguments are (args, varargs, varkw, locals). The next four arguments are the corresponding optional formatting functions that are called to turn names and values into strings. The ninth argument is an optional function to format the sequence of arguments.cSs||ƒ|||ƒS(N((RJtlocalsRNRQ((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyRHÃsR:s, R;(RRRR?tstringR<( R%R.R/RURNRORPRQR<RHRRR'((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pytformatargvalues·s !%%t__main__cCsdS(N(R(txtytz((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pytfooÑs(iiii(t__doc__Rt__all__RRR t CO_OPTIMIZEDt CO_NEWLOCALSRR R0R5R9R>R?RtstrRRWt__name__tinspectR\R2(((s;/usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyts>    ;