[Python-Dev] Adding a Rational Type to Python

Thomas Wouters thomas@xs4all.net
Mon, 12 Mar 2001 14:16:00 +0100


On Mon, Mar 12, 2001 at 12:03:17PM +0000, Michael Hudson wrote:

> Hmm, I wonder what the repr of rational(1,3) is...

Well, 'rational(1,3)', of course. Unless 1/3 returns a rational, in which
case it can just return '1/3' :-)

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!