/opt/imh/python3.13/lib/python3.13/__pycache__
NameSizeModeActions
abc.cpython-313.pyc79280644editdlrm
antigravity.cpython-313.pyc10000644editdlrm
argparse.cpython-313.pyc1040800644editdlrm
ast.cpython-313.pyc1030860644editdlrm
base64.cpython-313.pyc258320644editdlrm
bdb.cpython-313.pyc405800644editdlrm
bisect.cpython-313.pyc35120644editdlrm
bz2.cpython-313.pyc151800644editdlrm
calendar.cpython-313.pyc397080644editdlrm
cmd.cpython-313.pyc189770644editdlrm
code.cpython-313.pyc157990644editdlrm
codecs.cpython-313.pyc405720644editdlrm
codeop.cpython-313.pyc66550644editdlrm
colorsys.cpython-313.pyc45190644editdlrm
compileall.cpython-313.pyc206150644editdlrm
configparser.cpython-313.pyc689660644editdlrm
contextlib.cpython-313.pyc305090644editdlrm
contextvars.cpython-313.pyc2760644editdlrm
copy.cpython-313.pyc106450644editdlrm
copyreg.cpython-313.pyc75510644editdlrm
cProfile.cpython-313.pyc86790644editdlrm
csv.cpython-313.pyc207150644editdlrm
dataclasses.cpython-313.pyc478390644editdlrm
datetime.cpython-313.pyc4260644editdlrm
decimal.cpython-313.pyc30170644editdlrm
difflib.cpython-313.pyc720550644editdlrm
dis.cpython-313.pyc475320644editdlrm
doctest.cpython-313.pyc1076920644editdlrm
enum.cpython-313.pyc858660644editdlrm
filecmp.cpython-313.pyc150420644editdlrm
fileinput.cpython-313.pyc206480644editdlrm
fnmatch.cpython-313.pyc68190644editdlrm
fractions.cpython-313.pyc383840644editdlrm
ftplib.cpython-313.pyc423460644editdlrm
functools.cpython-313.pyc422860644editdlrm
genericpath.cpython-313.pyc78260644editdlrm
getopt.cpython-313.pyc84790644editdlrm
getpass.cpython-313.pyc73260644editdlrm
gettext.cpython-313.pyc225760644editdlrm
glob.cpython-313.pyc236810644editdlrm
graphlib.cpython-313.pyc102120644editdlrm
gzip.cpython-313.pyc319930644editdlrm
hashlib.cpython-313.pyc82910644editdlrm
heapq.cpython-313.pyc177850644editdlrm
hmac.cpython-313.pyc106750644editdlrm
imaplib.cpython-313.pyc626620644editdlrm
inspect.cpython-313.pyc1365370644editdlrm
io.cpython-313.pyc42900644editdlrm
ipaddress.cpython-313.pyc919790644editdlrm
keyword.cpython-313.pyc10560644editdlrm
linecache.cpython-313.pyc85670644editdlrm
locale.cpython-313.pyc590140644editdlrm
lzma.cpython-313.pyc157330644editdlrm
mailbox.cpython-313.pyc1187480644editdlrm
mimetypes.cpython-313.pyc249130644editdlrm
modulefinder.cpython-313.pyc284070644editdlrm
netrc.cpython-313.pyc93410644editdlrm
ntpath.cpython-313.pyc284840644editdlrm
nturl2path.cpython-313.pyc27520644editdlrm
numbers.cpython-313.pyc140470644editdlrm
opcode.cpython-313.pyc40770644editdlrm
operator.cpython-313.pyc173800644editdlrm
optparse.cpython-313.pyc675940644editdlrm
os.cpython-313.pyc458640644editdlrm
pdb.cpython-313.pyc1061180644editdlrm
pickle.cpython-313.pyc784190644editdlrm
pickletools.cpython-313.pyc804420644editdlrm
pkgutil.cpython-313.pyc199740644editdlrm
platform.cpython-313.pyc446900644editdlrm
plistlib.cpython-313.pyc431130644editdlrm
poplib.cpython-313.pyc184400644editdlrm
posixpath.cpython-313.pyc181150644editdlrm
pprint.cpython-313.pyc297130644editdlrm
profile.cpython-313.pyc225780644editdlrm
pstats.cpython-313.pyc378720644editdlrm
pty.cpython-313.pyc74200644editdlrm
pyclbr.cpython-313.pyc151590644editdlrm
pydoc.cpython-313.pyc1397200644editdlrm
py_compile.cpython-313.pyc100840644editdlrm
queue.cpython-313.pyc173480644editdlrm
quopri.cpython-313.pyc95750644editdlrm
random.cpython-313.pyc352710644editdlrm
reprlib.cpython-313.pyc111750644editdlrm
rlcompleter.cpython-313.pyc85870644editdlrm
runpy.cpython-313.pyc144060644editdlrm
sched.cpython-313.pyc76120644editdlrm
secrets.cpython-313.pyc25190644editdlrm
selectors.cpython-313.pyc263700644editdlrm
shelve.cpython-313.pyc133060644editdlrm
shlex.cpython-313.pyc148670644editdlrm
shutil.cpython-313.pyc674670644editdlrm
signal.cpython-313.pyc45590644editdlrm
site.cpython-313.pyc316620644editdlrm
smtplib.cpython-313.pyc473750644editdlrm
socket.cpython-313.pyc422340644editdlrm
socketserver.cpython-313.pyc346670644editdlrm
sre_compile.cpython-313.pyc6420644editdlrm
sre_constants.cpython-313.pyc6450644editdlrm
sre_parse.cpython-313.pyc6380644editdlrm
ssl.cpython-313.pyc652190644editdlrm
stat.cpython-313.pyc55380644editdlrm
statistics.cpython-313.pyc711130644editdlrm
string.cpython-313.pyc116660644editdlrm
stringprep.cpython-313.pyc252750644editdlrm
struct.cpython-313.pyc3400644editdlrm
subprocess.cpython-313.pyc819690644editdlrm
symtable.cpython-313.pyc232110644editdlrm
tabnanny.cpython-313.pyc124320644editdlrm
tarfile.cpython-313.pyc1258450644editdlrm
tempfile.cpython-313.pyc410080644editdlrm
textwrap.cpython-313.pyc179490644editdlrm
this.cpython-313.pyc14270644editdlrm
threading.cpython-313.pyc633120644editdlrm
timeit.cpython-313.pyc146530644editdlrm
token.cpython-313.pyc35880644editdlrm
tokenize.cpython-313.pyc254490644editdlrm
trace.cpython-313.pyc339780644editdlrm
traceback.cpython-313.pyc721390644editdlrm
tracemalloc.cpython-313.pyc274280644editdlrm
tty.cpython-313.pyc26790644editdlrm
turtle.cpython-313.pyc1751510644editdlrm
types.cpython-313.pyc155600644editdlrm
typing.cpython-313.pyc1545970644editdlrm
uuid.cpython-313.pyc323970644editdlrm
warnings.cpython-313.pyc295530644editdlrm
wave.cpython-313.pyc332520644editdlrm
weakref.cpython-313.pyc318180644editdlrm
webbrowser.cpython-313.pyc269010644editdlrm
zipapp.cpython-313.pyc104090644editdlrm
zipimport.cpython-313.pyc265220644editdlrm
_aix_support.cpython-313.pyc47320644editdlrm
_android_support.cpython-313.pyc76370644editdlrm
_apple_support.cpython-313.pyc34970644editdlrm
_collections_abc.cpython-313.pyc467080644editdlrm
_colorize.cpython-313.pyc40260644editdlrm
_compat_pickle.cpython-313.pyc72070644editdlrm
_compression.cpython-313.pyc78200644editdlrm
_ios_support.cpython-313.pyc27310644editdlrm
_markupbase.cpython-313.pyc124480644editdlrm
_opcode_metadata.cpython-313.pyc106930644editdlrm
_osx_support.cpython-313.pyc181420644editdlrm
_pydatetime.cpython-313.pyc945900644editdlrm
_pydecimal.cpython-313.pyc2170580644editdlrm
_pyio.cpython-313.pyc1117930644editdlrm
_pylong.cpython-313.pyc111730644editdlrm
_py_abc.cpython-313.pyc72070644editdlrm
_sitebuiltins.cpython-313.pyc49170644editdlrm
_strptime.cpython-313.pyc345000644editdlrm
_sysconfigdata__linux_x86_64-linux-gnu.cpython-313.pyc585830644editdlrm
_threading_local.cpython-313.pyc55380644editdlrm
_weakrefset.cpython-313.pyc120640644editdlrm
__future__.cpython-313.pyc47370644editdlrm
__hello__.cpython-313.pyc9810644editdlrm
Edit: /opt/imh/python3.13/lib/python3.13/__pycache__/fractions.cpython-313.pyc (38384B)
e,SrSSKJr SSKrSSKrSSKrSSKrSSKrSSKrS/r \RRr \RRr\R"SS9S5r\R""S\R$\R&-5rSS jrS r\R""S \R.\R$-5R0r\R""S \R.\R$-5R0r"S S\R65rg)z/Fraction, infinite-precision, rational numbers.DecimalNFractioni@)maxsizec[US[5n[[[U55U-5nUS:aUOU*nUS:XaS$U$![a [ nN'f=f)Nr)pow_PyHASH_MODULUShashabs ValueError _PyHASH_INF) numerator denominatordinvhash_results //opt/imh/python3.13/lib/python3.13/fractions.py_hash_algorithmrse2;O4(T#i.)D011nU5&F22)6)+ sAAAa \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 (?:\s*/\s*(?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 cUS:a USU--nO USU*--n[XS- -U5upEUS:XaUS-S:XaUS-nU(aUS:OUS:nU[U54$)a)Round a rational number to the nearest multiple of a given power of 10. Rounds the rational number n/d to the nearest integer multiple of 10**exponent, rounding to the nearest even integer multiple in the case of a tie. Returns a pair (sign: bool, significand: int) representing the rounded value (-1)**sign * significand * 10**exponent. If no_neg_zero is true, then the returned sign will always be False when the significand is zero. Otherwise, the sign reflects the sign of the input. d must be positive, but n and d need not be relatively prime. r r )divmodr )ndexponent no_neg_zeroqrsigns r_round_to_exponentr"Jsx1} R\ R(] !Av, "DAAv!a%1* R1q5QUD Q<cUS:XaSSSU- 4$[[U55[U5pC[U5[U5- XC:*-nXR- n[XU5upx[[U55US-:Xa US-nUS- nXxU4$)auRound a rational number to a given number of significant figures. Rounds the rational number n/d to the given number of significant figures using the round-ties-to-even rule, and returns a triple (sign: bool, significand: int, exponent: int) representing the rounded value (-1)**sign * significand * 10**exponent. In the special case where n = 0, returns a significand of zero and an exponent of 1 - figures, for compatibility with formatting. Otherwise, the returned significand satisfies 10**(figures - 1) <= significand < 10**figures. d must be positive, but n and d need not be relatively prime. figures must be positive. rFrr)strr lenr") rrfiguresstr_nstr_dmrr! significands r_round_to_figuresr,gs" AvaW$$s1v;A5 E SZ5>2A{H*1:D 3{ ! + A  h &&r#ay (?: (?P.)? (?P[<>=^]) )? (?P[-+ ]?) # Alt flag forces a slash and denominator in the output, even for # integer-valued Fraction objects. (?P\#)? # We don't implement the zeropad flag since there's no single obvious way # to interpret it. (?P0|[1-9][0-9]*)? (?P[,_])? a (?: (?P.)? (?P[<>=^]) )? (?P[-+ ]?) (?Pz)? (?P\#)? # A '0' that's *not* followed by another digit is parsed as a minimum width # rather than a zeropad flag. (?P0(?=[0-9]))? (?P0|[1-9][0-9]*)? (?P[,_])? (?:\.(?P0|[1-9][0-9]*))? (?P[eEfFgG%]) c^\rSrSrSrSrS1U4Sjjr\S5r\S5r \U4Sj5r Sr S r S2S jr \S 5r\S 5rS rSrSrSrSrS3SjrSr\"\\R25urrSr\"\\R:5urrSr \"\ \RB5ur"r#Sr$\"\$\RJ5ur&r'Sr(\"\(\RRS5ur*r+Sr,\"\,\-S5ur.r/Sr0\"\0\RbS5ur2r3Sr4Sr5Sr6Sr7Sr8\Rr4S jr:S!r;S"rS%r?S&r@S'rAS(rBS)rCS*rDS+rES,rFS-rGS.rHS/rIS0rJU=rK$)5ra1This 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 _denominatorc>[[U] U5nUGc[U5[LaXlSUlU$[U[R5(a$URUlURUlU$[U[[45(aUR5uUlUlU$[U[5(Ga[ R#U5nUc[%SU-5e[ UR'S5=(d S5nUR'S5nU(a [ U5nOSnUR'S5nU(a4UR)SS5nS [+U5-nX-[ U5-nX'-nUR'S 5nU(a#[ U5nUS :a US U--nO US U*--nUR'S 5S :XaU*nO[-S5e[U5[s=La[U5LaO OO{[U[R5(aQ[U[R5(a2URUR-URUR-p!O [-S5eUS :Xa[/SU-5e[0R2"X5n US :aU *n X-nX)-nXlX#lU$)aConstructs 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) rz Invalid literal for Fraction: %rnum0denomdecimal_rexprr!-z2argument should be a string or a Rational instancez+both arguments should be Rational instancesFraction(%s, 0))superr__new__typeintr0r1 isinstancenumbersRationalrrfloatras_integer_ratior%_RATIONAL_FORMATmatchrgroupreplacer& TypeErrorZeroDivisionErrormathgcd) clsrrselfr*r5r6scaler9g __class__s rr=Fraction.__new__s>Xs+C0  I#%"+$%! Iw'7'788"+"5"5$-$9$9! Iw'7885>5O5O5Q2!2 Is++$**959$%G%.&/00 5#6 ("%e*K"#Kggi0G")//#r": "CL 0$-$5G $D #, ''%.C!#h!8%S0I'2t83K776?c)!* I !9::)_ 8tK'8 8 G$4$455 {G$4$4 5 5##k&=&==%% (=(==# 12 2 ! #$5 $AB B HHY , ?A  #' r#c [U[R5(aU"U5$[U[5(d4[ UR <SU<S[ U5R <S35eUR"UR56$)zrConverts 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  ()) r@rAIntegralrCrI__name__r>_from_coprime_intsrD)rMfs r from_floatFraction.from_float4sq a)) * *q6MAu%% \\1d1g.>.>@A A%%q'9'9';<rXrD)rMdecrs r from_decimalFraction.from_decimalBsv $ c7++ , ,#c(#CC))sDI$6$689 9%%s';';'=>>r#cF>[[U] U5nXlX#lU$)zConvert a pair of ints to a rational number, for internal use. The ratio of integers should be in lowest terms and the denominator should be positive. )r<rr=r0r1)rMrrobjrQs rrXFraction._from_coprime_intsNs&Hc*3/"& r#c URS:H$)z*Return True if the Fraction is an integer.rr1rNs r is_integerFraction.is_integerZs  A%%r#c2URUR4$)zReturn a pair of integers, whose ratio is equal to the original Fraction. The ratio is in lowest terms and has a positive denominator. r/res rrDFraction.as_integer_ratio^s !2!233r#cUS:a [S5eURU::a [U5$Sup#pEURURpvXg-nX8U--n X:aOXEX(U--U 4up#pEXvX-- pvM'X- U-n SU-X:U---UR::a[R XE5$[R X*U--X:U--5$)aClosest 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) rz$max_denominator should be at least 1)rrrr)rr1rr0rX) rNmax_denominatorp0q0p1q1rraq2ks rlimit_denominatorFraction.limit_denominatores@ Q CD D    /D> !# 1 11AbDB#R"Wb0NBBeq  " $ Q3R4=D-- -..r6 6..rB$wR4@ @r#cUR$N)r0rqs rrFraction.numerators ||r#cUR$rwrdrxs rrFraction.denominators ~~r#cnURR<SUR<SUR<S3$)z repr(self)(z, rU)rQrWr0r1res r__repr__Fraction.__repr__s*#~~66#0A0AC Cr#cURS:Xa[UR5$UR<SUR<3$)z str(self)r/)r1r%r0res r__str__Fraction.__str__s4    !t' '"oot/@/@A Ar#c"US=(d SnUS=(d SnUSS:XaSOUSn[US5n[US =(d S 5nUS =(d SnURURpU S :dU(a[ U5US X3n O[ U5Un US:aSOUn X&[ U 5- [ U 5- -n US:XaX-U -$US:XaX-U -$US:Xa[ U 5S-n U SU U -U -XS-$X-U -$)z}Helper method for __format__. Handles fill, alignment, signs, and thousands separators in the case of no presentation type. fill align>r!r:r8alt minimumwidthr4 thousands_seprrr<^rkN)boolr?r0r1r r&)rNrFrrpos_signalternate_formrrrrbodyr!paddinghalfs r_format_generalFraction._format_generalsAV}#g%#v#-25=eEl+507C8 o.4"  1 11 q5N!fm_-Qq.ABD!fm_-D!esT2SY>? C<>D( ( c\;( ( c\w<1$D5D>D(4/'%.@ @>D( (r#c ^^ US=(d SnUS=(d SnUSS:XaSOUSn[US5n[US 5n[US 5n[US =(d S 5nUS m [US=(d S5n USn U S;=(a U(+n U(+n U S;aSOSn US:XaUS :XaSnU S;a7U *nU S:XaUS-n[URURX5unnSnU nOkU S;a [ U S5OU S-n[ URURU5unnnU S;=(d US:=(d UU-S:*nU(aUS- OU*nU S:XaSnOU(a U UU-S3nOSnUS US-S 3nU(aSOUnUS![U5U- mU[U5U- S!nU (aURS 5nU (a U(dSOS"nUU-U-nU(a=U[U5- [U5- nTRT (a S#U-S$-S-OU5mT (aJS[T5S- S#--nTS!USRUU 4S%j[U[T5S#555-mTU-nX([U5- [U5- -nUS:XaUU-U-$US&:XaUU-U-$US':Xa[U5S-nUS!UU-U-UUS!-$UU-U-$)(z?Helper method for __format__; handles float presentation types.rrrrr!r:r8rrzeropadrr4r precision6presentation_typegGEFGEe=TzfF%%rkFreErz+03drN.c38># UHnTTXS--v M g7f)rN).0posleadingrs r /Fraction._format_float_style..%s&4SC C? C<T>D( ( c\$;( ( c\w<1$D5D>D(4/'$%.@ @'>D( (r#c[U5=n(aURU5$[U5=n(aUSbUScURU5$[ SU<S[ U5R <35e)zAFormat this fraction according to the given format specification.rrzInvalid format specifier z for object of type )%_GENERAL_FORMAT_SPECIFICATION_MATCHERr#_FLOAT_FORMAT_SPECIFICATION_MATCHERrrr>rW)rN format_specrFs r __format__Fraction.__format__8s:+F F5 F''. .7 D D5 DW~%y)9)A//66' 7""&t*"5"5!8 :  r#c^^^UUU4SjnSTR-S-UlTRUlUUU4SjnSTR-S-UlTRUlX44$)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. cB>[U[5(aT"X5$[U[5(aT"U[U55$[U[5(aT"[U5U5$T(a'[U[5(aT"[ U5U5$[ $rw)r@rr?rCcomplexNotImplemented)rqbfallback_operatorhandle_complexmonomorphic_operators rforward-Fraction._operator_fallbacks..forwards}!X&&+A11As##+Ax{;;Au%%(q155Jq'$:$:(Q77%%r#__ch>[U[R5(aT"[U5U5$[U[R5(aT"[ U5[ U55$T(a:[U[R 5(aT"[U5[U55$[$rw) r@rArBrRealrCComplexrr)rrqrrrs rreverse-Fraction._operator_fallbacks..reverses{!W--..+HQK;;Aw||,,(q58<<Jq'//$B$B(WQZ@@%%r#__r)rW__doc__)rrrrrs``` r_operator_fallbacksFraction._operator_fallbacksIsgb & "3"<"<? HUG,,,r#cURURp2[URU-URU--X#-5$)za % b)rrr)rqrrrs r_mod Fraction._modOs7 Br)akkB.>?IIr#c[U[R5(Ga URS:XaURnUS:a0[ R URU-URU-5$URS:a2[ R URU*-URU*-5$URS:Xa[SURU*--5e[ R UR*U*-UR*U*-5$[U5[U5-$[U[[45(a[U5U-$[$)za ** 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. rrr;) r@rArBrrrrXr0r1rJrCrr)rqrpowers r__pow__Fraction.__pow__Vs> a)) * *}}! A:#66q||u7L78~~7NPP\\A%#66q~~%7O78||v7MOO\\Q&+,=,-NNuf,D-EFF$66UF7R9: 5&7PRR Qx58++ E7+ , ,8q= ! !r#c:URS:XaURS:aXR-$[U[R5(a#[ UR UR5U-$URS:XaXR-$U[U5-$)za ** brr) r1r0r@rArBrrrrC)rrqs r__rpow__Fraction.__rpow__vsz >>Q 1<<1#4 $ $ a)) * *AKK71< < >>Q  $ $E!H}r#cV[RURUR5$)z++a: Coerces a subclass instance to FractionrrXr0r1rxs r__pos__Fraction.__pos__s**1<<HHr#cX[RUR*UR5$)z-arrxs r__neg__Fraction.__neg__s**ALL=!..IIr#ch[R[UR5UR5$)zabs(a))rrXr r0r1rxs r__abs__Fraction.__abs__s"**3q||+>1 1r#c4URUR-$)z math.floor(a)r/rxs r __floor__Fraction.__floor__s||q~~--r#c8UR*UR-*$)z math.ceil(a)r/rxs r__ceil__Fraction.__ceil__s,,!..011r#c*UcMURn[URU5up4US-U:aU$US-U:aUS-$US-S:XaU$US-$S[U5-nUS:a[ [ X-5U5$[ [ X- 5U-5$)z/round(self, ndigits) Rounds half toward even. rkrrr)r1rr0r rround)rNndigitsrfloor remaindershifts r __round__Fraction.__round__s ?!!A%dooq9 E1}q  Q"qy a qy CL  Q;E$,/7 7E$,/%78 8r#cB[URUR5$)z hash(self))rr0r1res r__hash__Fraction.__hash__st0A0ABBr#ch[U5[La%URU:H=(a URS:H$[ U[ R 5(a9URUR:H=(a URUR:H$[ U[ R5(aURS:Xa URn[ U[5(aN[R"U5(d[R"U5(aSU:H$XR!U5:H$["$)za == brr)r>r?r0r1r@rArBrrrimagrealrCrKisnanisinfrZrrs r__eq__Fraction.__eq__s 7c><<1$<1)< < a)) * *LLAKK/4NNamm3 5 a ) )affkA a  zz!}} 1 axLLO++" !r#c[U[R5(a7U"URUR-UR UR -5$[U[5(aV[R"U5(d[R"U5(a U"SU5$U"XRU55$[$)a3Helper 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() r@rArBr0rr1rrCrKr+r,rZr)rNotherops r_richcmpFraction._richcmps eW-- . .doo(9(99''%//9; ; eU # #zz%  DJJu$5$5#u~%$ 677! !r#cBURU[R5$)za < b)r2operatorltrs r__lt__Fraction.__lt__zz!X[[))r#cBURU[R5$)za > b)r2r5gtrs r__gt__Fraction.__gt__r9r#cBURU[R5$)za <= b)r2r5lers r__le__Fraction.__le__r9r#cBURU[R5$)za >= b)r2r5gers r__ge__Fraction.__ge__r9r#c,[UR5$)za != 0)rr0rxs r__bool__Fraction.__bool__sALL!!r#cJURURUR44$rw)rQr0r1res r __reduce__Fraction.__reduce__s $2C2C DEEr#cx[U5[:XaU$URURUR5$rwr>rrQr0r1res r__copy__Fraction.__copy__ . : !K~~doot/@/@AAr#cx[U5[:XaU$URURUR5$rwrM)rNmemos r __deepcopy__Fraction.__deepcopy__rPr#)r1r0)rN)i@B)Trw)LrW __module__ __qualname____firstlineno__r __slots__r= classmethodrZr^rXrfrDrtpropertyrrr~rrrrrrr5add__add____radd__rsub__sub____rsub__rmul__mul____rmul__rtruediv __truediv__ __rtruediv__rfloordiv __floordiv__ __rfloordiv__rr __divmod__ __rdivmod__rmod__mod____rmod__rrrr r indexrrrrr"r%r-r2r7r<r@rDrGrJrNrS__static_attributes__ __classcell__)rQs@rrrs(/IgR = = ? ?  &47ArC B )Db)H $,0l d D,D(,,?GX D,D(,,?GX =,D(,,?GX1(!4D(:J:J KKN#6iARARTY"ZL-- 2'65IJ J ,D(,,FGX"@ IJN#..:2.2 94C"*",****"FB BBr#)F)rr6r functoolsrKrAr5resys__all__ hash_infomodulusr infr lru_cachercompileVERBOSE IGNORECASErEr"r,DOTALL fullmatchrrrBrrr#rrs6  , --''mm  w'*(*@:: ZZ"-- !":$'P)+ 4YY )'Y&$')jj2YY''Y$$` Bw` Br#