grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026§ ˜>…bÝwîãóÖ—dZddlmZddlZddlZddlZddlZddlZdgZej j Z ej j Z ejdejejz¦«ZGd„dej¦«ZdS)z/Fraction, infinite-precision, rational numbers.é©ÚDecimalNÚFractiona¶ \A\s* # optional whitespace at the start, (?P[-+]?) # an optional sign, then (?=\d|\.\d) # lookahead for digit or .digit (?P\d*|\d+(_\d+)*) # numerator (possibly empty) (?: # followed by (?:/(?P\d+(_\d+)*))? # an optional denominator | # or (?:\.(?P\d*|\d+(_\d+)*))? # an optional fractional part (?:E(?P[-+]?\d+(_\d+)*))? # and optional exponent ) \s*\Z # and optional whitespace to finish cól‡—eZdZdZdZd.ddœˆfd„ Zed„¦«Zed „¦«Zd „Z d/d „Z e d „¦«Z e d„¦«Z d„Zd„Zd„Zd„Zeeej¦«\ZZd„Zeeej¦«\ZZd„Zeeej¦«\ZZd„Zeeej¦«\Z Z!d„Z"ee"ej#¦«\Z$Z%d„Z&ee&e'¦«\Z(Z)d„Z*ee*ej+¦«\Z,Z-d„Z.d„Z/d„Z0d„Z1d„Z2ej3fd„Z4d„Z5d „Z6d!„Z7d0d"„Z8d#„Z9d$„Z:d%„Z;d&„Zd)„Z?d*„Z@d+„ZAd,„ZBd-„ZCˆxZDS)1ra]This class implements rational numbers. In the two-argument form of the constructor, Fraction(8, 6) will produce a rational number equivalent to 4/3. Both arguments must be Rational. The numerator defaults to 0 and the denominator defaults to 1 so that Fraction(3) == 3 and Fraction() == 0. Fractions can also be constructed from: - numeric strings similar to those accepted by the float constructor (for example, '-2.3' or '1e10') - strings of the form '123/456' - float and Decimal instances - other Rational instances (including integers) ©Ú _numeratorÚ _denominatorrNT©Ú _normalizecóô•—tt|¦« |¦«}|�€ít|¦«tur||_d|_|St|tj ¦«r|j |_|j |_|St|ttf¦«r#| ¦«\|_|_|St|t¦«�r/t  |¦«}|€t%d|z¦«‚t | d¦«pd¦«}| d¦«}|rt |¦«}n™d}| d¦«}|rB| dd ¦«}d t+|¦«z}||zt |¦«z}||z}| d ¦«} | r't | ¦«} | d kr |d | zz}n |d | zz}| d ¦«dkr| }n�t-d¦«‚t|¦«tcxurt|¦«urnnnbt|tj ¦«r9t|tj ¦«r|j |j z|j |j z}}nt-d¦«‚|d krt/d|z¦«‚|r(t1j||¦«} |d kr| } || z}|| z}||_||_|S)a£Constructs a Rational. Takes a string like '3/2' or '1.5', another Rational instance, a numerator/denominator pair, or a float. Examples -------- >>> Fraction(10, -8) Fraction(-5, 4) >>> Fraction(Fraction(1, 7), 5) Fraction(1, 35) >>> Fraction(Fraction(1, 7), Fraction(2, 3)) Fraction(3, 14) >>> Fraction('314') Fraction(314, 1) >>> Fraction('-35/4') Fraction(-35, 4) >>> Fraction('3.1415') # conversion from numeric string Fraction(6283, 2000) >>> Fraction('-47e-2') # string may include a decimal exponent Fraction(-47, 100) >>> Fraction(1.47) # direct construction from float (exact conversion) Fraction(6620291452234629, 4503599627370496) >>> Fraction(2.25) Fraction(9, 4) >>> Fraction(Decimal('1.47')) Fraction(147, 100) Néz Invalid literal for Fraction: %rÚnumÚ0ÚdenomÚdecimalÚ_Úé ÚexprÚsignú-z2argument should be a string or a Rational instancez+both arguments should be Rational instanceszFraction(%s, 0))ÚsuperrÚ__new__ÚtypeÚintrr Ú isinstanceÚnumbersÚRationalÚ numeratorÚ denominatorÚfloatrÚas_integer_ratioÚstrÚ_RATIONAL_FORMATÚmatchÚ ValueErrorÚgroupÚreplaceÚlenÚ TypeErrorÚZeroDivisionErrorÚmathÚgcd) Úclsrr r ÚselfÚmrrÚscalerÚgÚ __class__s €ú0/opt/alt/python311/lib64/python3.11/fractions.pyrzFraction.__new__>s-ø€õ>•X˜sÑ#Ô#×+Ò+¨CÑ0Ô0ˆà Ñ Ý�I‰Œ¥#Ð%Ð%Ø"+�”Ø$%�Ô!Ø� å˜I¥wÔ'7Ñ8Ô8ð( :Ø"+Ô"5�”Ø$-Ô$9�Ô!Ø� å˜I­­wÐ'7Ñ8Ô8ð# :à5>×5OÒ5OÑ5QÔ5QÑ2�” Ô!2Ø� å˜I¥sÑ+Ô+ñ :å$×*Ò*¨9Ñ5Ô5�Ø�9Ý$Ð%GØ%.ñ&/ñ0ô0ð0å §¢¨¡¤Ð 5°#Ñ6Ô6� ØŸš Ñ(Ô(�Øð4Ý"% e¡*¤*�K�Kà"#�KØŸgšg iÑ0Ô0�GØð-Ø")§/¢/°#°rÑ":Ô":˜Ø "¥C¨¡L¤LÑ 0˜Ø$-°Ñ$5½¸G¹ ¼ Ñ$D˜ Ø# uÑ,˜ ØŸ'š' %™.œ.�CØð4Ý! #™hœh˜Ø !š8˜8Ø%¨¨S©Ñ0˜I˜Ià'¨2°¨t©8Ñ3˜KØ—7’7˜6‘?”? cÒ)Ð)Ø!*  �Iøõ ð!9ñ:ô:ð:õ�)‰_Œ_¥Ð 8Ð 8Ð 8Ð 8¥t¨KÑ'8Ô'8Ð 8Ð 8Ð 8Ð 8Ð 8Ø å˜¥GÔ$4Ñ5Ô5ð 2Ý �{¥GÔ$4Ñ 5Ô 5ð 2ðÔ# kÔ&=Ñ=ØÔ%¨ Ô(=Ñ=ð#ˆIˆIõ ð1ñ2ô2ð 2ð ˜!Ò Ð Ý#Ð$5¸ Ñ$AÑBÔBÐ BØ ð Ý”˜ KÑ0Ô0ˆAؘQŠˆØ�B�Ø ˜!‰OˆIØ ˜AÑ ˆKØ#ˆŒØ'ˆÔ؈ óc ó—t|tj¦«r ||¦«St|t¦«s/t |j›d|›dt |¦«j›d�¦«‚|| ¦«ŽS)z‚Converts a finite float to a rational number, exactly. Beware that Fraction.from_float(0.3) != Fraction(3, 10). z%.from_float() only takes floats, not ú (ú))rrÚIntegralr!r*Ú__name__rr")r.Úfs r4Ú from_floatzFraction.from_float¨sŽ€õ �a�Ô)Ñ *Ô *ð AØ�3�q‘6”6ˆMݘA�uÑ%Ô%ð AÝØ œ\˜\˜\¨1¨1¨1­d°1©g¬gÔ.>Ð.>Ð.>ð@ñAôAð Aàˆs�A×&Ò&Ñ(Ô(Ð)Ð)r5c ó —ddlm}t|tj¦«r|t |¦«¦«}n?t||¦«s/t |j›d|›dt|¦«j›d�¦«‚||  ¦«ŽS)zAConverts a finite Decimal instance to a rational number, exactly.rrz).from_decimal() only takes Decimals, not r7r8) rrrrr9rr*r:rr")r.Údecrs r4Ú from_decimalzFraction.from_decimal¶s¦€ð $Ð#Ð#Ð#Ð#Ð#Ý �c�7Ô+Ñ ,Ô ,ð 9Ø�'�#˜c™(œ(Ñ#Ô#ˆCˆCݘC Ñ)Ô)ð 9Ýà”��˜s˜s˜s¥D¨¡I¤IÔ$6Ð$6Ð$6ð8ñ9ô9ð 9ðˆs�C×(Ò(Ñ*Ô*Ð+Ð+r5có—|j|jfS)z¤Return the integer ratio as a tuple. Return a tuple of two integers, whose ratio is equal to the Fraction and with a positive denominator. r©r/s r4r"zFraction.as_integer_ratioÂs€ð ” Ô!2Ð3Ð3r5é@Bcó¨—|dkrtd¦«‚|j|krt|¦«Sd\}}}}|j|j}} ||z}|||zz} | |krn|||||zz| f\}}}}||||zz }}Œ0||z |z} t|| |zz|| |zz¦«} t||¦«} t | |z ¦«t | |z ¦«kr| S| S)aWClosest Fraction to self with denominator at most max_denominator. >>> Fraction('3.141592653589793').limit_denominator(10) Fraction(22, 7) >>> Fraction('3.141592653589793').limit_denominator(100) Fraction(311, 99) >>> Fraction(4321, 8765).limit_denominator(10000) Fraction(4321, 8765) r z$max_denominator should be at least 1)rr r r)r&r rrÚabs) r/Úmax_denominatorÚp0Úq0Úp1Úq1ÚnÚdÚaÚq2ÚkÚbound1Úbound2s r4Úlimit_denominatorzFraction.limit_denominatorÊs€ð@ ˜QÒ Ð ÝÐCÑDÔDÐ DØ Ô  Ò /Ð /ݘD‘>”>Ð !à#‰ˆˆB��BØŒ Ô 1ˆ1ˆð Ø�1‘ˆAØ�A�b‘D‘ˆBØ�OÒ#Ð#ØØ  R¨¨"©¡W¨bÐ0‰NˆB��B˜Ø�a˜˜!™‘eˆqˆAð  ð˜RÑ  "Ñ $ˆÝ˜"˜Q˜r™T™' 2 a¨¡d¡7Ñ+Ô+ˆÝ˜"˜bÑ!Ô!ˆÝ ˆv˜‰}Ñ Ô ¥ V¨D¡[Ñ!1Ô!1Ò 1Ð 1؈MàˆMr5có—|jS©N)r©rLs r4rzFraction.numerators €àŒ|Ðr5có—|jSrS)r rTs r4r zFraction.denominators €àŒ~Ðr5có@—|jj›d|j›d|j›d�S)z repr(self)ú(z, r8)r3r:rr rAs r4Ú__repr__zFraction.__repr__ s0€à#œ~Ô6Ð6Ð6Ø#œ˜˜°Ô0AÐ0AÐ0AðCð Cr5cób—|jdkrt|j¦«S|j›d|j›�S)z str(self)r ú/)r r#rrAs r4Ú__str__zFraction.__str__s7€à Ô  Ò !Ð !Ý�t”Ñ'Ô'Ð 'à"œo˜o˜o¨tÔ/@Ð/@ÐAÐ Ar5c󞇇—ˆˆfd„}d‰jzdz|_‰j|_ˆˆfd„}d‰jzdz|_‰j|_||fS)aÕGenerates forward and reverse operators given a purely-rational operator and a function from the operator module. Use this like: __op__, __rop__ = _operator_fallbacks(just_rational_op, operator.op) In general, we want to implement the arithmetic operations so that mixed-mode operations either call an implementation whose author knew about the types of both arguments, or convert both to the nearest built in type and do the operation there. In Fraction, that means that we define __add__ and __radd__ as: def __add__(self, other): # Both types have numerators/denominator attributes, # so do the operation directly if isinstance(other, (int, Fraction)): return Fraction(self.numerator * other.denominator + other.numerator * self.denominator, self.denominator * other.denominator) # float and complex don't have those operations, but we # know about those types, so special case them. elif isinstance(other, float): return float(self) + other elif isinstance(other, complex): return complex(self) + other # Let the other type take over. return NotImplemented def __radd__(self, other): # radd handles more types than add because there's # nothing left to fall back to. if isinstance(other, numbers.Rational): return Fraction(self.numerator * other.denominator + other.numerator * self.denominator, self.denominator * other.denominator) elif isinstance(other, Real): return float(other) + float(self) elif isinstance(other, Complex): return complex(other) + complex(self) return NotImplemented There are 5 different cases for a mixed-type addition on Fraction. I'll refer to all of the above code that doesn't refer to Fraction, float, or complex as "boilerplate". 'r' will be an instance of Fraction, which is a subtype of Rational (r : Fraction <: Rational), and b : B <: Complex. The first three involve 'r + b': 1. If B <: Fraction, int, float, or complex, we handle that specially, and all is well. 2. If Fraction falls back to the boilerplate code, and it were to return a value from __add__, we'd miss the possibility that B defines a more intelligent __radd__, so the boilerplate should return NotImplemented from __add__. In particular, we don't handle Rational here, even though we could get an exact answer, in case the other type wants to do something special. 3. If B <: Fraction, Python tries B.__radd__ before Fraction.__add__. This is ok, because it was implemented with knowledge of Fraction, so it can handle those instances before delegating to Real or Complex. The next two situations describe 'b + r'. We assume that b didn't know about Fraction in its implementation, and that it uses similar boilerplate code: 4. If B <: Rational, then __radd_ converts both to the builtin rational type (hey look, that's us) and proceeds. 5. Otherwise, __radd__ tries to find the nearest common base ABC, and fall back to its builtin type. Since this class doesn't subclass a concrete type, there's no implementation to fall back to, so we need to try as hard as possible to return an actual value, or the user will get a TypeError. có•—t|ttf¦«r ‰||¦«St|t¦«r‰t|¦«|¦«St|t¦«r‰t |¦«|¦«St SrS)rrrr!ÚcomplexÚNotImplemented)rLÚbÚfallback_operatorÚmonomorphic_operators €€r4Úforwardz-Fraction._operator_fallbacks..forwardesˆø€Ý˜!�c¥8˜_Ñ-Ô-ð &Ø+Ð+¨A¨qÑ1Ô1Ð1ݘA�uÑ%Ô%ð &Ø(Ð(­¨q©¬°1Ñ5Ô5Ð5ݘA�wÑ'Ô'ð &Ø(Ð(­°©¬°QÑ7Ô7Ð7å%Ð%r5Ú__có^•—t|tj¦«r ‰||¦«St|tj¦«r&‰t |¦«t |¦«¦«St|tj¦«r&‰t |¦«t |¦«¦«StSrS)rrrÚRealr!ÚComplexr^r_)r`rLrarbs €€r4Úreversez-Fraction._operator_fallbacks..reverseqs—ø€Ý˜!�WÔ-Ñ.Ô.ð &à+Ð+¨A¨qÑ1Ô1Ð1ݘA�wœ|Ñ,Ô,ð &Ø(Ð(­¨q©¬µ5¸±8´8Ñ<Ô<Ð<ݘA�wœÑ/Ô/ð &Ø(Ð(­°©¬µW¸Q±Z´ZÑ@Ô@Ð@å%Ð%r5Ú__r)r:Ú__doc__)rbrarcrhs`` r4Ú_operator_fallbackszFraction._operator_fallbackss�øø€ð` &ð &ð &ð &ð &ð &ð Ð"3Ô"<Ñ<¸tÑCˆÔØ.Ô6ˆŒð &ð &ð &ð &ð &ð &ð!Ð#4Ô#=Ñ=ÀÑDˆÔØ.Ô6ˆŒà˜ÐÐr5cóh—|j|j}}|j|j}}tj||¦«}|dkrt ||z||zz||zd¬¦«S||z}|||zz||zz}tj||¦«} | dkrt |||zd¬¦«St || z||| zzd¬¦«S)za + br Fr ©rr r,r-r© rLr`ÚnaÚdaÚnbÚdbr2ÚsÚtÚg2s r4Ú_addz Fraction._addÄóÍ€à”˜aœmˆBˆØ”˜aœmˆBˆÝ ŒH�R˜Ñ Ô ˆØ �Š6ˆ6ݘB ™G b¨2¡gÑ-¨r°B©wÀ5ÐIÑIÔIÐ IØ �!‰GˆØ �"˜‘'‰N˜R !™VÑ #ˆÝ ŒX�a˜‰^Œ^ˆØ �Š7ˆ7ݘA˜q 2™v°%Ð8Ñ8Ô8Ð 8ݘ˜R™  b¨B¡h¡¸EÐBÑBÔBÐBr5cóh—|j|j}}|j|j}}tj||¦«}|dkrt ||z||zz ||zd¬¦«S||z}|||zz||zz }tj||¦«} | dkrt |||zd¬¦«St || z||| zzd¬¦«S)za - br Fr rmrns r4Ú_subz Fraction._subÔrwr5cóþ—|j|j}}|j|j}}tj||¦«}|dkr ||z}||z}tj||¦«}|dkr ||z}||z}t ||z||zd¬¦«S)za * br Fr rm)rLr`rorprqrrÚg1rus r4Ú_mulz Fraction._muläs‘€à”˜aœmˆBˆØ”˜aœmˆBˆÝ ŒX�b˜"Ñ Ô ˆØ �Š6ˆ6Ø �2‰IˆBØ �2‰IˆBÝ ŒX�b˜"Ñ Ô ˆØ �Š6ˆ6Ø �2‰IˆBØ �2‰IˆBݘ˜R™  b¡°UÐ;Ñ;Ô;Ð;r5có—|j|j}}|j|j}}tj||¦«}|dkr ||z}||z}tj||¦«}|dkr ||z}||z}||z||z} }| dkr| | } }t || d¬¦«S)za / br rFr rm) rLr`rorprqrrr{rurJrKs r4Ú_divz Fraction._divôs²€ð”˜aœmˆBˆØ”˜aœmˆBˆÝ ŒX�b˜"Ñ Ô ˆØ �Š6ˆ6Ø �2‰IˆBØ �2‰IˆBÝ ŒX�b˜"Ñ Ô ˆØ �Š6ˆ6Ø �2‰IˆBØ �2‰IˆBØ�B‰w˜˜R™ˆ1ˆØ ˆqŠ5ˆ5Ø�2˜�rˆqˆAݘ˜1¨Ð/Ñ/Ô/Ð/r5có@—|j|jz|j|jzzS)za // b©rr ©rLr`s r4Ú _floordivzFraction._floordivs€à” ˜aœmÑ+°´ÀÄÑ1LÑMÐMr5cóŽ—|j|j}}t|j|z||jz¦«\}}|t|||z¦«fS)z(a // b, a % b))r Údivmodrr)rLr`rprrÚdivÚn_mods r4Ú_divmodzFraction._divmodsI€à” ¤ ˆBˆÝ˜AœK¨"Ñ,¨b°1´;Ñ.>Ñ?Ô?‰ ˆˆUØ•H˜U B¨¡GÑ,Ô,Ð,Ð,r5cój—|j|j}}t|j|z|j|zz||z¦«S)za % b)r rr)rLr`rprrs r4Ú_modz Fraction._mods6€à” ¤ ˆBˆÝ˜œ rÑ)¨a¬k¸BÑ.>Ñ?ÀÀbÁÑIÔIÐIr5có¶—t|tj¦«r®|jdkr„|j}|dkr"t |j|z|j|zd¬¦«S|jdkr$t |j| z|j| zd¬¦«St |j | z|j | zd¬¦«St|¦«t|¦«zSt|¦«|zS)z¾a ** b If b is not an integer, the result will be a float or complex since roots are generally irrational. If b is an integer, the result will be rational. r rFr ) rrrr rrrr r!)rLr`Úpowers r4Ú__pow__zFraction.__pow__s€õ �a�Ô)Ñ *Ô *ð !ØŒ} Ò!Ð!Øœ �ؘA’:�:Ý# A¤L°EÑ$9Ø$%¤N°eÑ$;Ø/4ð6ñ6ô6ð6ð”\ QÒ&Ð&Ý# A¤N°u°fÑ$<Ø$%¤L°U°FÑ$:Ø/4ð6ñ6ô6ð6õ$ a¤n _¸%¸Ñ$?Ø&'¤l ]¸°vÑ$=Ø/4ð6ñ6ô6ð6õ ˜Q‘x”x¥5¨¡8¤8Ñ+Ð+嘑8”8˜q‘=Ð r5cóþ—|jdkr|jdkr ||jzSt|tj¦«rt |j|j¦«|zS|jdkr ||jzS|t|¦«zS)za ** br r) r rrrrrrr r!)r`rLs r4Ú__rpow__zFraction.__rpow__;s€€à Œ>˜QÒ Ð  1¤<°1Ò#4Ð#4à˜œ Ñ$Ð $å �a�Ô)Ñ *Ô *ð =ݘAœK¨¬Ñ7Ô7¸1Ñ<Ð <à Œ>˜QÒ Ð Ø˜œ Ñ$Ð $à•E˜!‘H”H‰}Ðr5có:—t|j|jd¬¦«S)z++a: Coerces a subclass instance to FractionFr ©rrr rTs r4Ú__pos__zFraction.__pos__Is€å˜œ  a¤nÀÐGÑGÔGÐGr5có<—t|j |jd¬¦«S)z-aFr r�rTs r4Ú__neg__zFraction.__neg__Ms€å˜œ˜  q¤~À%ÐHÑHÔHÐHr5cóT—tt|j¦«|jd¬¦«S)zabs(a)Fr )rrDrr rTs r4Ú__abs__zFraction.__abs__Qs#€å�˜AœLÑ)Ô)¨1¬>ÀeÐLÑLÔLÐLr5có|—|jdkr||j |jz ¦«S||j|jz¦«S)zint(a)rr)rLÚ_indexs r4Ú__int__zFraction.__int__UsF€à Œ<˜!Ò Ð Ø�6˜Qœ\˜M¨Q¬^Ñ;Ð<Ñ=Ô=Ð =à�6˜!œ,¨!¬.Ñ8Ñ9Ô9Ð 9r5cóX—|jdkr|j |jz S|j|jzS)z math.trunc(a)rrrTs r4Ú __trunc__zFraction.__trunc__\s2€à Œ<˜!Ò Ð Ø”l�] a¤nÑ4Ð5Ð 5à”< 1¤>Ñ1Ð 1r5có —|j|jzS)z math.floor(a)r€rTs r4Ú __floor__zFraction.__floor__cs€àŒ{˜aœmÑ+Ð+r5có$—|j |jz S)z math.ceil(a)r€rTs r4Ú__ceil__zFraction.__ceil__gs€ð”+� ¤Ñ.Ð/Ð/r5cóZ—|€Pt|j|j¦«\}}|dz|jkr|S|dz|jkr|dzS|dzdkr|S|dzSdt|¦«z}|dkr t t ||z¦«|¦«St t ||z ¦«|z¦«S)z?round(self, ndigits) Rounds half toward even. Nér rr)r„rr rDrÚround)r/ÚndigitsÚfloorÚ remainderÚshifts r4Ú __round__zFraction.__round__lsÇ€ð ˆ?Ý% d¤n°dÔ6FÑGÔGÑ ˆE�9ؘ1‰}˜tÔ/Ò/Ð/Ø� ؘQ‘ Ô!1Ò1Ð1ؘq‘yÐ à˜‘˜a’�Ø� à˜q‘yÐ Ø•C˜‘L”LÑ ˆð �QŠ;ˆ;Ý�E $¨¡,Ñ/Ô/°Ñ7Ô7Ð 7å�E $¨¡,Ñ/Ô/°%Ñ7Ñ8Ô8Ð 8r5có— t|jdt¦«}ttt |j¦«¦«|z¦«}n#t $r t}YnwxYw|jdkr|n| }|dkrdn|S)z hash(self)éÿÿÿÿréþÿÿÿ)Úpowr Ú_PyHASH_MODULUSÚhashrDrr&Ú _PyHASH_INF)r/ÚdinvÚhash_Úresults r4Ú__hash__zFraction.__hash__…s”€ð <Ý�tÔ(¨"­oÑ>Ô>ˆDõ(��c $¤/Ñ2Ô2Ñ3Ô3°dÑ:Ñ;Ô;ˆEˆEøõ'ð ð ð åˆEˆEˆEð øøøð(œ/¨QÒ.Ð.��°U°FˆØ˜r’\�\ˆrˆr vÐ-s‚AÁA#Á"A#cóì—t|¦«tur|j|ko |jdkSt |t j¦«r |j|jko|j|jkSt |t j ¦«r|j dkr|j }t |t¦«rGtj|¦«stj|¦«rd|kS|| |¦«kSt"S)za == br rç)rrrr rrrrr rgÚimagÚrealr!r,ÚisnanÚisinfr<r_r�s r4Ú__eq__zFraction.__eq__¦s߀å �‰7Œ7•cˆ>ˆ>Ø”< 1Ò$Ð<¨¬¸1Ò)<Ð <Ý �a�Ô)Ñ *Ô *ð 5Ø”L A¤KÒ/ð4Ø”N a¤mÒ3ð 5å �a�œÑ )Ô )ð ¨a¬f¸ªk¨kØ”ˆAÝ �a�Ñ Ô ð "ÝŒz˜!‰}Œ}ð ,¥¤ ¨1¡ ¤ ð ,ð˜a’x�à˜AŸLšL¨™OœOÒ+Ð+õ"Ð !r5có`—t|tj¦«r&||j|jz|j|jz¦«St|t¦«rStj |¦«stj |¦«r |d|¦«S|||  |¦«¦«StS)acHelper for comparison operators, for internal use only. Implement comparison between a Rational instance `self`, and either another Rational instance or a float `other`. If `other` is not a Rational instance or a float, return NotImplemented. `op` should be one of the six standard comparison operators. r³) rrrrr r rr!r,r¶r·r<r_)r/ÚotherÚops r4Ú_richcmpzFraction._richcmp»s¯€õ �e�WÔ-Ñ .Ô .ð ;Ø�2�d”o¨Ô(9Ñ9ØÔ'¨%¬/Ñ9ñ;ô;ð ;å �e�UÑ #Ô #ð "ÝŒz˜%Ñ Ô ð 8¥D¤J¨uÑ$5Ô$5ð 8Ø�r˜#˜u‘~”~Ð%à�r˜$ §¢°Ñ 6Ô 6Ñ7Ô7Ð7å!Ð !r5cóB—| |tj¦«S)za < b)r¼ÚoperatorÚltr�s r4Ú__lt__zFraction.__lt__Ñó€à�zŠz˜!�Xœ[Ñ)Ô)Ð)r5cóB—| |tj¦«S)za > b)r¼r¾Úgtr�s r4Ú__gt__zFraction.__gt__ÕrÁr5cóB—| |tj¦«S)za <= b)r¼r¾Úler�s r4Ú__le__zFraction.__le__ÙrÁr5cóB—| |tj¦«S)za >= b)r¼r¾Úger�s r4Ú__ge__zFraction.__ge__ÝrÁr5có*—t|j¦«S)za != 0)ÚboolrrTs r4Ú__bool__zFraction.__bool__ás€õ�A”LÑ!Ô!Ð!r5có,—|j|j|jffSrS)r3rr rAs r4Ú __reduce__zFraction.__reduce__és€Ø” ¤°$Ô2CÐ DÐEÐEr5cóv—t|¦«tkr|S| |j|j¦«SrS©rrr3rr rAs r4Ú__copy__zFraction.__copy__ìó1€Ý �‰:Œ:�Ò !Ð !؈KØ�~Š~˜dœo¨tÔ/@ÑAÔAÐAr5cóv—t|¦«tkr|S| |j|j¦«SrSrÑ)r/Úmemos r4Ú __deepcopy__zFraction.__deepcopy__ñrÓr5)rN)rBrS)Er:Ú __module__Ú __qualname__rjÚ __slots__rÚ classmethodr<r?r"rQÚpropertyrr rXr[rkrvr¾ÚaddÚ__add__Ú__radd__ryÚsubÚ__sub__Ú__rsub__r|ÚmulÚ__mul__Ú__rmul__r~ÚtruedivÚ __truediv__Ú __rtruediv__r‚ÚfloordivÚ __floordiv__Ú __rfloordiv__r‡r„Ú __divmod__Ú __rdivmod__r‰ÚmodÚ__mod__Ú__rmod__rŒrŽr‘r“r•Úindexr˜ršrœržr¦r±r¸r¼rÀrÄrÇrÊrÍrÏrÒrÖÚ __classcell__)r3s@r4rr&s¿ø€€€€€ððð(/€IðhÀ$ðhðhðhðhðhðhðhðTð *ð *ñ„[ð *ðð ,ð ,ñ„[ð ,ð4ð4ð4ð5ð5ð5ð5ðnððñ„Xððððñ„XððCðCðCð BðBðBði ði ði ð^ Cð Cð Cð,Ð+¨D°(´,Ñ?Ô?Ñ€GˆXð Cð Cð Cð,Ð+¨D°(´,Ñ?Ô?Ñ€GˆXð <ð <ð <ð,Ð+¨D°(´,Ñ?Ô?Ñ€GˆXð0ð0ð0ð$!4Ð 3°D¸(Ô:JÑ KÔ KÑ€K�ðNðNðNð#6Ð"5°iÀÔARÑ"SÔ"SÑ€L�-ð-ð-ð-ð 2Ð1°'¸6ÑBÔBÑ€J� ðJðJðJð ,Ð+¨D°(´,Ñ?Ô?Ñ€GˆXð!ð!ð!ð< ð ð ðHðHðHðIðIðIðMðMðMð#œ.ð:ð:ð:ð:ð2ð2ð2ð,ð,ð,ð0ð0ð0ð 9ð9ð9ð9ð2.ð.ð.ðB"ð"ð"ð*"ð"ð"ð,*ð*ð*ð*ð*ð*ð*ð*ð*ð*ð*ð*ð"ð"ð"ðFðFðFðBðBðBð BðBðBðBðBðBðBr5)rjrrr,rr¾ÚreÚsysÚ__all__Ú hash_infoÚmodulusr«Úinfr­ÚcompileÚVERBOSEÚ IGNORECASEr$rr©r5r4úrüsÝðð6Ð5àÐÐÐÐÐØ € € € Ø€€€Ø€€€Ø € € € Ø € € € à ˆ,€ð ”-Ô'€ðŒmÔ€ à�2”:ð ð„Z�"”-Ññ !ô !ÐðN BðN BðN BðN BðN BˆwÔñN BôN BðN BðN BðN Br5