[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues

M.-A. Lemburg mal@lemburg.com
Tue, 08 Oct 2002 14:51:49 +0200


Paul Hughett wrote:
> Greg Ewing wrote:
> 
> 
>>So, I'm now reduced to suggesting
> 
> 
>>  <2/3>
> 
> 
> How about 2r3, which could be pronounced "2 rational 3" and is syntactically
> very similar to the universal 2e3?

What's so hard about rat(2,3) ?

And if that doesn't look right, simply do:

R = rat(1,1)

2/R/3

This works without any changes to the language.

-- 
Marc-Andre Lemburg
CEO eGenix.com Software GmbH
_______________________________________________________________________
eGenix.com -- Makers of the Python mx Extensions: mxDateTime,mxODBC,...
Python Consulting:                               http://www.egenix.com/
Python Software:                    http://www.egenix.com/files/python/