ok
Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/pydoc.cpython-311.opt-1.pyc |
� �f� � �� � d Z dgZdZdZdZddlZddlZddlZddl Zddl ZddlZddlZddl Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlmZ dd lmZ d � Zd� Z d� Z!d � Z"d� Z#d� Z$d� Z%d� Z&d� Z'd� Z(d� Z)d� Z* ej+ dej, � � Z-d� Z.d� Z/d� Z0d� Z1 e2ej3 � � Z4dTd�Z5d� Z6d� Z7d� Z8d� Z9i fd �Z: G d!� d"e;� � Z<d#� Z=di fd$�Z> G d%� d&� � Z? G d'� d(e� � Z@ G d)� d*e?� � ZA G d+� d,e� � ZB G d-� d.e?� � ZC G d/� d0eC� � ZDd1� aEd2� ZFd3� ZGd4� ZHd5� ZId6� ZJd7� ZKd8� ZLd9� ZMdUd:�ZN eC� � ZO eD� � ZP eA� � ZQdUd;�ZR dVd=�ZS dWd?�ZTdUd@�ZUdXdB�ZV G dC� dD� � ZW eW� � ZX G dE� dF� � ZYdG� ZZdH� Z[dYdJ�Z\dUdKdLdM�dN�Z]dO� Z^dP� Z_dQ� Z`dR� ZaebdSk r ea� � dS dS )Za Generate Python documentation in HTML or text for interactive use. At the Python interactive prompt, calling help(thing) on a Python object documents the object, and calling help() starts up an interactive help session. Or, at the shell command line outside of Python: Run "pydoc <name>" to show documentation on something. <name> may be the name of a function, module, package, or a dotted reference to a class or function within a module or module in a package. If the argument contains a path segment delimiter (e.g. slash on Unix, backslash on Windows) it is treated as the path to a Python source file. Run "pydoc -k <keyword>" to search for a keyword in the synopsis lines of all available modules. Run "pydoc -n <hostname>" to start an HTTP server with the given hostname (default: localhost) on the local machine. Run "pydoc -p <port>" to start an HTTP server on the given port on the local machine. Port number 0 can be used to get an arbitrary unused port. Run "pydoc -b" to start an HTTP server on an arbitrary unused port and open a web browser to interactively browse documentation. Combine with the -n and -p options to control the hostname and port used. Run "pydoc -w <name>" to write out the HTML documentation for a module to a file named "<name>.html". Module docs for core modules are assumed to be in https://docs.python.org/X.Y/library/ This can be overridden by setting the PYTHONDOCS environment variable to a different URL or to a local directory containing the Library Reference Manual pages. �helpzKa-Ping Yee <ping@lfw.org>z26 February 2001z�Guido van Rossum, for an excellent programming language. Tommy Burnette, the original creator of manpy. Paul Prescod, for all his work on onlinehelp. Richard Chamberlain, for the first implementation of textdoc. � N)�deque)�Repr)�format_exception_onlyc �F � g } g }t j D ]�}t j � |pd� � }t j � |� � }||vrIt j � |� � r*| � |� � |� |� � ��| S )zAConvert sys.path into a list of absolute, existing, unique paths.�.)�sys�path�os�abspath�normcase�isdir�append)�dirs�normdirs�dir�normdirs �,/opt/alt/python311/lib64/python3.11/pydoc.py�pathdirsr R s� � � �D��H��x� %� %���g�o�o�c�j�S�)�)���'�"�"�3�'�'���(�"�"�r�w�}�}�S�'9�'9�"��K�K������O�O�G�$�$�$���K� c �� � t j � | j � � }|�d S | j � d� � d d� D ]}t ||� � }�t j |� � sd S |S )Nr ���) r �modules�get� __module__�__qualname__�split�getattr�inspect�isclass)�func�cls�names r � _findclassr$ ^ sw � � �+�/�/�$�/� *� *�C� �{��t��!�'�'��,�,�S�b�S�1� !� !���c�4� � ����?�3��� ��t��Jr c �J � t j | � � rZ| j j }| j }t j |� � r*t t ||d � � d� � | j u r|}�n~|j }�nut j | � � r.| j }t | � � }|�t ||� � | urd S �n3t j | � � rC| j }| j }t j |� � r|j dz |z | j k r|}n�|j }n�t | t � � r4| j }|j }t |� � }|�t ||� � | urd S n�t j | � � st j | � � ri| j }| j }t ||� � | urd S t j | � � r2t |dd � � }t |t&