Sindbad~EG File Manager
�
Mٜg�a � �~ � d Z ddlmZ ddlZddlmZmZ ddlmZ ddl Z ddl
mZmZm
Z
ddlZddlmZ ddlmc mZ ddlmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$ dd l%m&Z&m'Z' dd
l(m)Z) ddl*m+Z+ d,d�Z,d,d
�Z-d,d�Z.d� Z/d� Z0 e0e.e-e,e&� f d-d�Z1d� Z2 e2e3� Z4 e2e5� Z6 e7d� d� e8e� D � D � � Z9e9fd�Z: e7d� e9D � � Z; e:ejx � Z= e:ej| � Z? e:ej� � ZA e:ej� � ZC e:ej� � ZE e:ej� � ZG e:ej� � ZI e:ej� � ZK e:ej� � ZM e:ej� � ZO e:ej� � ZQ e:ej � ZR e:ej� � ZT e7g d�� ZU e7g d�� ZVe?e=z eOz eQz eRz eTz eCz eVz eUz
ZWe;eWz
eUz ZXeWeXz ZYdeY� �ZZeYrJ eZ� �d.d�Z[ e
d� Z\d/d�Z]d� Z^ee#d�Z_d� Z` e]eW� e`e_� G d � d!ej� � � � Zb e7g d"�� Zc e7eez � Zd e]eWecz eE e7g d#�� z z
� G d$� d%eb� � Ze e]eWecz e7d&g� z � G d'� d(eb� � Zf G d)� d*� Zgefeed+�Zhy)0z
:func:`~pandas.eval` parsers.
� )�annotationsN)�partial�reduce�� iskeyword)�Callable�ClassVar�TypeVar)�UndefinedVariableError)�ARITH_OPS_SYMS�
BOOL_OPS_SYMS�CMP_OPS_SYMS� LOCAL_TAG�MATHOPS�
REDUCTIONS�UNARY_OPS_SYMS�BinOp�Constant�FuncNode�Op�Term�UnaryOp�is_term)�clean_backtick_quoted_toks�tokenize_string)�Scope)�printingc �$ � | \ }}||dk( rdfS |fS )a`
Rewrite the assignment operator for PyTables expressions that use ``=``
as a substitute for ``==``.
Parameters
----------
tok : tuple of int, str
ints correspond to the all caps constants in the tokenize module
Returns
-------
tuple of int, str
Either the input or token or the replacement values
�=�==� ��tok�toknum�tokvals �G/usr/local/lib/python3.12/site-packages/pandas/core/computation/expr.py�_rewrite_assignr'