|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/21572/root/usr/lib64/python2.4/test/ |
Upload File : |
mò
‚=5Dc @ sš d Z d k Z d k l Z d „ Z d „ Z d „ Z d „ Z d e f d „ ƒ YZ d e i
f d
„ ƒ YZ d Z d „ Z
e d
j o e
ƒ n d S( s9 Tests for binary operators on subtypes of built-in types.N( s test_supportc C s$ x | o | | | } } q W| S( s1 Greatest common divisor using Euclid's algorithm.N( t at b( R R ( ( t' /usr/lib64/python2.4/test/test_binop.pyt gcd s
c C s t | t ƒ p
t | t ƒ S( s5 Test whether an object is an instance of int or long.N( t
isinstancet xt intt long( R ( ( R t isint s c C s9 x2 t t t t f D] } t | | ƒ o d Sq q Wd S( sA Test whether an object is an instance of a built-in numeric type.i i N( R R t floatt complext TR R ( R R ( ( R t isnum s c C s
t | t ƒ S( s6 Test wheter an object is an instance of the Rat class.N( R R t Rat( R ( ( R t isRat s R
c B s t Z d Z d d g Z d d d „ Z d „ Z e e e ƒ Z d „ Z e e e ƒ Z
d „ Z d „ Z d
„ Z
d „ Z d „ Z d
„ Z e Z d „ Z d „ Z d „ Z e Z d „ Z e Z d „ Z e Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z! RS( s: Rational number implemented as a normalized pair of longs.t _Rat__numt _Rat__denl l c C s t | ƒ p t d | ‚ n t | ƒ p t d | ‚ n | d j o
t d ‚ n t | | ƒ } t | | ƒ | _ t | | ƒ | _
d S( sd Constructor: Rat([num[, den]]).
The arguments must be ints or longs, and default to (0, 1).s&