| Server IP : 35.80.110.71 / Your IP : 216.73.216.52 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/IPython/core/__pycache__/ |
Upload File : |
�
}�eM0 � � � d Z ddlZddlZddlZddlZddlZddlmZ ddlm Z ddl
m
Z
ddlmZ ddl
mZmZ dd lmZ d
dlmZ ddlmZ dd
lmZ e � Zd
ZdZ ej6 ddj9 d� eD � � z � Z ej6 d� Zd� Zd� Z d� Z!d� Z"d de#dee# fd�Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z*y)!z\Implementations for various useful completers.
These are all loaded by default by IPython.
� N)�
import_module)�all_suffixes)�time)�zipimporter� )�expand_user�
compress_user)�TryNext� )� arg_split)�get_ipython)�List� z?(?P<name>[^\W\d]\w*?)(?P<package>[/\\]__init__)?(?P<suffix>%s)$�|c # �F K � | ] }t j |� �� � y �w�N)�re�escape)�.0�ss �;/usr/lib/python3/dist-packages/IPython/core/completerlib.py� <genexpr>r : s � �� � A�!����1�� A�� �!z.*(\.ipy|\.ipynb|\.py[w]?)$c �l �� � | dk( rd} t j j �t j j | � rhg }t j | d�� D ]K \ }}}|t | � dz d � � r!|j
�� fd�|D � � g |dd �;|j
|� �M n- t t | � j j � � }g }|D ]: }t j |� }|s�|j |j d� � �< t t |� � S # g }Y �[xY w) z`
Return the list containing the names of the modules available in the given
folder.
� �.T)�followlinksr Nc 3 �0 �K � | ]
} ��|� �� � y �wr � )r �f�pjoin�subdirs ��r r zmodule_list.<locals>.<genexpr>W s �� �� �?�!�U�6�1�-�?�s ��name)�os�path�join�isdir�walk�len�extend�listr �_files�keys� import_re�match�append�group�set)
r% �files�root�dirs�nondirs�modulesr �mr! r"