o
    ŀgZ                     @  s|   d Z ddlmZ ddlZdd Zdd Zdd	 Zd
d Zdd Zdd Z	dd Z
dd Zdd Zdd Zdd Zdd ZdS )z
Reversed Operations not available in the stdlib operator module.
Defining these instead of using lambdas allows us to reference them by name.
    )annotationsNc                 C  s   ||  S N leftrightr   r   I/var/www/html/myenv/lib/python3.10/site-packages/pandas/core/roperator.pyradd
      r	   c                 C  s   ||  S r   r   r   r   r   r   rsub   r
   r   c                 C  s   ||  S r   r   r   r   r   r   rmul   r
   r   c                 C     ||  S r   r   r   r   r   r   rdiv   r
   r   c                 C  r   r   r   r   r   r   r   rtruediv   r
   r   c                 C  s   ||  S r   r   r   r   r   r   	rfloordiv   r
   r   c                 C  s*   t |trt| j}t| d||  S )Nz! cannot perform the operation mod)
isinstancestrtype__name__	TypeError)r   r   typr   r   r   rmod"   s   

r   c                 C  s
   t || S r   )divmodr   r   r   r   rdivmod-   s   
r   c                 C  s   ||  S r   r   r   r   r   r   rpow1   r
   r   c                 C     t || S r   )operatorand_r   r   r   r   rand_5      r   c                 C  r   r   )r   or_r   r   r   r   ror_9   r   r!   c                 C  r   r   )r   xorr   r   r   r   rxor=   r   r#   )__doc__
__future__r   r   r	   r   r   r   r   r   r   r   r   r   r!   r#   r   r   r   r   <module>   s    