[Python-Dev] Adding a Rational Type to Python

Paul Prescod paulp@ActiveState.com
Mon, 12 Mar 2001 07:09:37 -0800


Moshe Zadka wrote:
> 
> On Mon, 12 Mar 2001, Paul Prescod <paulp@ActiveState.com> wrote:
> 
> > Whether or not Python adopts rationals as the default number type, a
> > rational() built-in would be a Good Thing. I'd like to see it in 2.1 or
> > 2.2.
> 
> OK, how about this:
> 
> 1. I remove the "literals" part from my PEP to another PEP
> 2. I add to rational() an ability to take strings, such as "1.3" and
>    make rationals out of them

+1

-- 
Python:
    Programming the way
    Guido
    indented it.
       - (originated with Skip Montanaro?)