File: //opt/alt/python312/lib64/python3.12/test/__pycache__/test_fractions.cpython-312.opt-2.pyc
�
h�e� � �� � d dl mZ d dlmZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl
Z
d dlZd dlZd dl
m
Z
mZ d dlZd dlmZmZ ej$ Ze j( j+ e� xs e j. Ze j( j3 ed� Z G d� de� Z G d � d
e� Z G d� dej$ � Zd
� Z G d� dej@ � Z!e"dk( r ejF � yy)� )�Decimal)�requires_IEEE_754N)�copy�deepcopy)�dumps�loadszformatfloat_testcases.txtc �H � e Zd Z d� Zd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � ZeZy
)�
DummyFloatc �H � t |t � st d� �|| _ y )Nz-DummyFloat can only be initialized from float)�
isinstance�float� TypeError�value��selfr s �:/opt/alt/python312/lib64/python3.12/test/test_fractions.py�__init__zDummyFloat.__init__ s � ��%��'��K�L�L���
� c �� � t |t j � r& |t j | j
� |� S t |t � r || j
|j
� S t S �N)r �numbers�Rational�F�
from_floatr r
�NotImplemented)r �other�ops r �_richcmpzDummyFloat._richcmp sQ � ��e�W�-�-�.��a�l�l�4�:�:�.��6�6�
��z�
*��d�j�j�%�+�+�.�.�!�!r c �B � | j |t j � S r )r �operator�eq�r r s r �__eq__zDummyFloat.__eq__'