Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
test
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/test/test_binop.pyc
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/lib/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&