File: //lib64/python3.8/__pycache__/fractions.cpython-38.opt-2.pyc
U
e5d _ @ s d dl mZ d dlZd dlZd dlZd dlZd dlZddgZdd Zdd Z ej
jZej
j
ZedejejB ZG d d dejZdS )
DecimalNFractiongcdc C sf dd l }|dtd t| t kr2t|kr\n n&|p<| dk rPt| | S t| |S t| |S )Nr z6fractions.gcd() is deprecated. Use math.gcd() instead. )warningswarnDeprecationWarningtypeintmathr _gcd)abr r !/usr/lib64/python3.8/fractions.pyr s c C s |r|| | } }q | S Nr r r r r r r
s r
aC
\A\s* # optional whitespace at the start, then
(?P<sign>[-+]?) # an optional sign, then
(?=\d|\.\d) # lookahead for digit or .digit
(?P<num>\d*) # numerator (possibly empty)
(?: # followed by
(?:/(?P<denom>\d+))? # an optional denominator
| # or
(?:\.(?P<decimal>\d*))? # an optional fractional part
(?:E(?P<exp>[-+]?\d+))? # and optional exponent
)
\s*\Z # and optional whitespace to finish
c s e Zd ZdZdQdd fddZedd Zed
d Zdd
ZdRddZ e
dd Ze
dd Zdd Z
dd Zdd Zdd Zeeej\ZZdd Zeeej\ZZdd Zeeej\ZZd!d"