Ñò
ZÐKc
@ sS d Z d d k Z d d g Z d „ Z d „ Z d „ Z d \ Z Z Z Z d „ Z
d
„ Z d „ Z d „ Z
e
d „ Z d d d e d „ d „ d „ e
d „ Z e d „ d „ d „ e
d „ Z e d j o| d d k Z d d „ Z e i
e i ƒ GHe
e i ƒ GHe i e ƒ GHe e ƒ GHe i e i e ƒ Œ GHe e e ƒ Œ GHn d S( 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
formatargspecc C s t | t i ƒ 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
isinstancet typest
MethodType( t object( ( s; /usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyt ismethod
s c C s t | t i ƒ S( s Return 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__)( R R t FunctionType( R ( ( s; /usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyt
isfunction s c C s t | t i ƒ S( su Return 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( R R t CodeType( R ( ( s; /usr/lib64/python2.6/site-packages/numpy/compat/_inspect.pyt iscode% s i i i i c C so t | ƒ p t d ƒ ‚ n | i } | i } | i } t | | ƒ } d } x½t | ƒ D]¯} | | d d j o”g g g } } } xk| t | ƒ j oWt | | ƒ }
| d } |
t i
j o)t i |
} t | | ƒ t | | d ƒ d } | d } | d
j o | i | ƒ | i | ƒ qó| d
j o° | i | | ƒ | p | d g | d