403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.144.16.26
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/__pycache__/_inspect.cpython-37.pyc
B

��Fd��@s�dZddlmZmZmZddlZddgZdd�Zdd	�Zd
d�Z	d\Z
ZZZ
d
d�Zdd�Zdd�Zdd�Zefdd�Zdddedd�dd�dd�efdd�Zedd�dd�dd�efdd�ZdS) z�Subset of inspect module from upstream python

We use this instead of upstream because upstream inspect is slow to import, and
significantly contributes to numpy import times. Importing this copy has almost
no overhead.

�)�division�absolute_import�print_functionN�
getargspec�
formatargspeccCst|tj�S)a�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

    )�
isinstance�types�
MethodType)�object�r�H/opt/alt/python37/lib64/python3.7/site-packages/numpy/compat/_inspect.py�ismethodsr
cCst|tj�S)aReturn 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__)

    )rr�FunctionType)r
rrr�
isfunctions
rcCst|tj�S)a�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
        
    )rr�CodeType)r
rrr�iscode+sr)����cCs�t|�std��|j}|j}t|d|��}x,t|�D] }||dd�dkr6td��q6Wd}|jt@rz|j|}|d}d}|jt@r�|j|}|||fS)aGet information about the arguments accepted by a code object.

    Three things are returned: (args, varargs, varkw), where 'args' is
    a list of argument names (possibly containing nested lists), and
    'varargs' and 'varkw' are the names of the * and ** arguments or None.

    zarg is not a code objectNr)��.z*tuple function arguments are not supported)	r�	TypeError�co_argcount�co_varnames�list�range�co_flags�
CO_VARARGS�CO_VARKEYWORDS)�co�nargs�names�args�i�varargs�varkwrrr�getargsCs 	



r'cCs<t|�r|j}t|�std��t|j�\}}}||||jfS)amGet the names and default values of a function's arguments.

    A tuple of four things is returned: (args, varargs, varkw, defaults).
    'args' is a list of the argument names (it may contain nested lists).
    'varargs' and 'varkw' are the names of the * and ** arguments or None.
    'defaults' is an n-tuple of the default values of the last n arguments.

    zarg is not a Python function)r
�__func__rrr'�__code__�__defaults__)�funcr#r%r&rrrrbs
cCst|j�\}}}||||jfS)aaGet information about arguments passed into a particular frame.

    A tuple of four things is returned: (args, varargs, varkw, locals).
    'args' is a list of the argument names (it may contain nested lists).
    'varargs' and 'varkw' are the names of the * and ** arguments or None.
    'locals' is the locals dictionary of the given frame.
    
    )r'�f_code�f_locals)�framer#r%r&rrr�getargvaluesss	r/cCs2t|�dkrd|ddSdd�|�dSdS)Nr�(rz,)z, �))�len�join)�seqrrr�joinseqsr5cs4t|�ttgkr(���fdd�|D��S�|�SdS)z=Recursively walk a sequence, stringifying each element.

    csg|]}t|����qSr)�strseq)�.0�_o)�convertr3rr�
<listcomp>�szstrseq.<locals>.<listcomp>N)�typer�tuple)r
r9r3r)r9r3rr6�sr6cCsd|S)N�*r)�namerrr�<lambda>��r?cCsd|S)Nz**r)r>rrrr?�r@cCsdt|�S)N�=)�repr)�valuerrrr?�r@c	
Cs�g}	|rt|�t|�}
xNtt|��D]>}t||||�}|rZ||
krZ|||||
�}|	�|�q&W|dk	r~|	�||��|dk	r�|	�||��dd�|	�dS)amFormat 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.

    Nr0z, r1)r2rr6�appendr3)
r#r%r&�defaults�	formatarg�
formatvarargs�formatvarkw�formatvaluer3�specs�firstdefaultr$�specrrrr�scCsd|S)Nr=r)r>rrrr?�r@cCsd|S)Nz**r)r>rrrr?�r@cCsdt|�S)NrA)rB)rCrrrr?�r@c	Cs�|||fdd�}	g}
x*tt|��D]}|
�t|||	|��q"W|r^|
�||�|||��|r||
�||�|||��dd�|
�dS)alFormat 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)Nr)r>�localsrFrIrrrr9�sz formatargvalues.<locals>.convertr0z, r1)rr2rDr6r3)r#r%r&rMrFrGrHrIr3r9rJr$rrr�formatargvalues�srN)�__doc__�
__future__rrrr�__all__r
rr�CO_OPTIMIZED�CO_NEWLOCALSrrr'rr/r5r6�strrrNrrrr�<module>s.
	

Youez - 2016 - github.com/yon3zu
LinuXploit