Файловый менеджер - Редактировать - /home/digitalm/venv/lib/python3.7/site-packages/numpy/random/_examples/cffi/__pycache__/parse.cpython-37.pyc
Назад
B �5�g% � @ s d dl Z dd� ZdS )� Nc C sZ t tj�|dd���B}g }x&|D ]}|�� �d�r4q |�|� q W | �d�|�� W dQ R X t tj�|dd����}g }d}d}x�|D ]�}|r�|�� �d �r�d}q�|�� �d �r�d}|�� �d�r�q�|�� �d�r�||�d �7 }q�n(|dk�r ||�d �7 }||�d�8 }q�|� dd�}|� dd�}|� dd�}|�|� q�W | �d�|�� W dQ R X dS )z� Parse distributions.h located in inc_dir for CFFI, filling in the ffi.cdef Read the function declarations without the "#define ..." macros that will be filled in when loading the library. �randomzbitgen.h�#� Nzdistributions.hr Fz#endifz#ifdef __cplusplusTzstatic NPY_INLINE�{�}ZDECLDIR� Z NPY_INLINEZ RAND_INT_TYPEZint64_t) �open�os�path�join�strip� startswith�appendZcdef�count�replace)�ffi�inc_dir�fid�s�lineZin_skipZignoring� r �W/home/digitalm-up/venv/lib/python3.7/site-packages/numpy/random/_examples/cffi/parse.py�parse_distributions_h s@ r )r r r r r r �<module> s
| ver. 1.4 |
Github
|
.
| PHP 8.3.23 | Генерация страницы: 0.05 |
proxy
|
phpinfo
|
Настройка