A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-March/013469.html below:

[Python-Dev] Adding a Rational Type to Python

[Python-Dev] Adding a Rational Type to PythonMoshe Zadka moshez@zadka.site.co.il
Mon, 12 Mar 2001 16:55:31 +0200 (IST)
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

Does anyone have any objections to

a. doing that
b. the PEP that would result from 1+2
?

I even volunteer to code the first prototype.
 
-- 
"I'll be ex-DPL soon anyway so I'm        |LUKE: Is Perl better than Python?
looking for someplace else to grab power."|YODA: No...no... no. Quicker,
   -- Wichert Akkerman (on debian-private)|      easier, more seductive.
For public key, finger moshez@debian.org  |http://www.{python,debian,gnu}.org



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4