Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
lib /
python3 /
dist-packages /
numpy /
__pycache__ /
[ HOME SHELL ]
Name
Size
Permission
Action
__config__.cpython-310.pyc
3.59
KB
-rw-r--r--
__init__.cpython-310.pyc
10.84
KB
-rw-r--r--
_distributor_init.cpython-310....
489
B
-rw-r--r--
_globals.cpython-310.pyc
3.24
KB
-rw-r--r--
_pytesttester.cpython-310.pyc
5.59
KB
-rw-r--r--
_version.cpython-310.pyc
466
B
-rw-r--r--
conftest.cpython-310.pyc
3.24
KB
-rw-r--r--
ctypeslib.cpython-310.pyc
14.27
KB
-rw-r--r--
dual.cpython-310.pyc
2.05
KB
-rw-r--r--
matlib.cpython-310.pyc
10.1
KB
-rw-r--r--
setup.cpython-310.pyc
886
B
-rw-r--r--
version.cpython-310.pyc
490
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ctypeslib.cpython-310.pyc
o ��c�D � @ sb d Z g d�ZddlZddlmZmZmZmZm Z ddl mZmZ zddl Z W n ey1 dZ Y nw e du rIdd� ZeZeZeZddlmZ eZnddlm mZ e�� Z[e jZd d � Zdd� Zg d �Zdd� ZG dd� de�Z G dd� de �Z!i Z"d(dd�Z#e dur�dd� Z$dd� Z%e%� Z&dd� Z'dd� Z(dd� Z)d d!� Z*d"d#� Z+d)d$d%�Zd&d'� ZdS dS )*a7 ============================ ``ctypes`` Utility Functions ============================ See Also -------- load_library : Load a C library. ndpointer : Array restype/argtype with verification. as_ctypes : Create a ctypes array from an ndarray. as_array : Create an ndarray from a ctypes array. References ---------- .. [1] "SciPy Cookbook: ctypes", https://scipy-cookbook.readthedocs.io/items/Ctypes.html Examples -------- Load the C library: >>> _lib = np.ctypeslib.load_library('libmystuff', '.') #doctest: +SKIP Our result type, an ndarray that must be of type double, be 1-dimensional and is C-contiguous in memory: >>> array_1d_double = np.ctypeslib.ndpointer( ... dtype=np.double, ... ndim=1, flags='CONTIGUOUS') #doctest: +SKIP Our C-function typically takes an array and updates its values in-place. For example:: void foo_func(double* x, int length) { int i; for (i = 0; i < length; i++) { x[i] = i*i; } } We wrap it using: >>> _lib.foo_func.restype = None #doctest: +SKIP >>> _lib.foo_func.argtypes = [array_1d_double, c_int] #doctest: +SKIP Then, we're ready to call ``foo_func``: >>> out = np.empty(15, dtype=np.double) >>> _lib.foo_func(out, len(out)) #doctest: +SKIP )�load_library� ndpointer�c_intp� as_ctypes�as_array�as_ctypes_type� N)�integer�ndarray�dtype�asarray� frombuffer)� _flagdict�flagsobjc O s t d��)z� Dummy object that raises an ImportError if ctypes is not available. Raises ------ ImportError If ctypes is not available. zctypes is not available.)�ImportError)�args�kwds� r �1/usr/lib/python3/dist-packages/numpy/ctypeslib.py�_dummyC s r )�intpc C s< t jdk rddl}|jddd� tj�| �d }|s_ddlm} |� }| | g}|d d �}||ks9|� d| | � zddl }d|�d�|�d �f } |� d| | � W n tt fy^ Y nw | g}tj�|�}tj�|�sutj�|�} n|} |D ] }tj�| |�}tj�|�r�zt j| W S ty� � w qytd��)av It is possible to load a library using >>> lib = ctypes.cdll[<full_path_name>] # doctest: +SKIP But there are cross-platform considerations, such as library file extensions, plus the fact Windows will just load the first library it finds with that name. NumPy supplies the load_library function as a convenience. Parameters ---------- libname : str Name of the library, which can have 'lib' as a prefix, but without an extension. loader_path : str Where the library can be found. Returns ------- ctypes.cdll[libpath] : library object A ctypes library object Raises ------ OSError If there is no library with the expected extension, or the library is defective and cannot be loaded. z1.0.1r NzAAll features of ctypes interface may not work with ctypes < 1.0.1� )� stacklevel� )�get_shared_lib_extensionT)� is_python_extz .%s-%s.so�SOABI� MULTIARCHzno file with expected extension)�ctypes�__version__�warnings�warn�os�path�splitext�numpy.distutils.misc_utilr �insert� sysconfig�get_config_var�KeyErrorr �abspath�isdir�dirname�join�exists�cdll�OSError) �libname�loader_pathr �extr �so_ext�libname_ext�so_ext2r&