Server : Apache System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64 User : nobody ( 99) PHP Version : 8.1.23 Disable Function : NONE Directory : /opt/alt/python311/lib64/python3.11/__pycache__/ |
� �,d�� � � � d Z ddlZddlT ddlmZmZ ddlmZmZm Z dLddd �d �Z d� ZdMdd �d�Zd� Z d� ZdNd�Zd� Zd� ZdOd�Zd� Zd� Zdd�d�Zd� Z G d� de� � Z G d� de� � Z eed� � s(d � Zd!� Z eee� � e_ eee� � e_ G d"� d#e!� � Z"d$� Z# G d%� d&ee"�'� � Z$ G d(� d)ee"�'� � Z% G d*� d+ee"�'� � Z& G d,� d-ee"�'� � Z' G d.� d/ee"�'� � Z(e$e)e*e+fe%e,fe&e-fe' e!d� � e.fe( e!d0� � fiZ/e$e.fiZ0e.d- e!d� � d-e)d&e*d&e+d&e,d)e-d+ e!d0� � d/iZ1 G d1� d2e2� � Z3 G d3� d4e3� � Z4 G d5� d6e3� � Z5 ee6d7� � sd8� Z7d9� Z8 ee7e8� � e6_9 G d:� d;e:� � Z; G d<� d=e<� � Z= G d>� d?e<� � Z> G d@� dAe<� � Z?dB e@ejA jB dz � � z ZC e e� � G dC� dD� � � � ZDdEZEdFZFg eE�eF�R ZG G dG� dHe� � ZHdI� ZIdJ� ZJeKdKk r eJ� � dS dS )PaH ast ~~~ The `ast` module helps Python applications to process trees of the Python abstract syntax grammar. The abstract syntax itself might change with each Python release; this module helps to find out programmatically what the current grammar looks like and allows modifications of it. An abstract syntax tree can be generated by passing `ast.PyCF_ONLY_AST` as a flag to the `compile()` builtin function or by using the `parse()` function from this module. The result will be a tree of objects whose classes all inherit from `ast.AST`. A modified abstract syntax tree can be compiled into a Python code object using the built-in `compile()` function. Additionally various helper functions are provided that make working with the trees simpler. The main intention of the helper functions and this module in general is to provide an easy to use interface for libraries that work tightly with the python syntax (template engines for example). :copyright: Copyright 2008 by Armin Ronacher. :license: Python License. � N)�*)�contextmanager�nullcontext)�IntEnum�auto�_simple_enum� <unknown>�execF)� type_comments�feature_versionc � � t }|r |t z }t |t � � r|\ }}|dk sJ �|}n|�d}t | ||||�� � S )z� Parse the source into an AST node. Equivalent to compile(source, filename, mode, PyCF_ONLY_AST). Pass type_comments=True to get back type comments where the syntax allows. � N���)�_feature_version)� PyCF_ONLY_AST�PyCF_TYPE_COMMENTS� isinstance�tuple�compile)�source�filename�moder r �flags�major�minors �*/opt/alt/python311/lib64/python3.11/ast.py�parser ! sx � � �E�� $� �#�#���/�5�)�)� �&���u���z�z�z�z���� � ����6�8�T�5�$3�5� 5� 5� 5� c �� ����� t | t � � r$t | � d� � d�� � } t | t � � r| j } d� ��fd���fd������fd�� �| � � S )aT Evaluate an expression node or a string containing only a Python expression. The string or node provided may only consist of the following Python literal structures: strings, bytes, numbers, tuples, lists, dicts, sets, booleans, and None. Caution: A complex expression can overflow the C stack and cause a crash. z �eval�r c �f � d}t | dd � � x}r|d|� �z }t |d| ��z � � �)Nzmalformed node or string�linenoz on line �: )�getattr� ValueError)�node�msg�lnos r �_raise_malformed_nodez+literal_eval.<locals>._raise_malformed_nodeC sL � �(���$��$�/�/�/�3� %��$�s�$�$�$�C���}�D�}�}�,�-�-�-r c � �� t | t � � r(t | j � � t t t fvr �| � � | j S �N)r �Constant�type�value�int�float�complex)r'