ACC SHELL
Path : /usr/lib/python/ |
|
Current File : //usr/lib/python/fractions.pyc |
Ñò
nÄMc @ s“ d Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d g Z e i Z d „ Z e i
d e i ƒ Z d e f d „ ƒ YZ
d S( s+ Rational, infinite-precision, real numbers.iÿÿÿÿ( t divisionNt Fractiont gcdc C s$ x | o | | | } } q W| S( s¶ Calculate the Greatest Common Divisor of a and b.
Unless b==0, the result will have the same sign as b (so that when
b is divided by it, the result comes out positive).
( ( t at b( ( s /usr/lib/python2.6/fractions.pyR s s
\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 an optional
/(?P<denom>\d+) # / and denominator
| # or
\.(?P<decimal>\d*) # decimal point and fractional part
)?
\s*\Z # and optional whitespace to finish
c B sß e Z d Z d( Z d d d „ Z e d „ ƒ Z e d „ ƒ Z d d „ Z e d
„ ƒ Z
e d „ ƒ Z d „ Z d
„ Z
d „ Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z d „ Z e e e i ƒ \ Z Z e e e i ƒ \ Z! Z"