[Python-Dev] unicodedata.numeric (was RE: stupid floating pointquestion...)

M.-A. Lemburg mal@lemburg.com
Fri, 29 Sep 2000 00:30:03 +0200


Fredrik Lundh wrote:
> 
> tim wrote:
> > > unicodedata.rational might be an obvious choice.
> > >
> > >     >>> unicodedata.rational(u"\N{VULGAR FRACTION ONE THIRD}")
> > >     (1, 3)
> >
> > Perfect -- another great name.  Beats all heck out of unicodedata.vulgar()
> > too.
> 
> should I interpret this as a +1, or should I write a PEP on
> this topic? ;-)

+1 from here. 

I really only chose floats to get all possibilities (digit, decimal
and fractions) into one type... Python should support rational numbers
some day.

-- 
Marc-Andre Lemburg
______________________________________________________________________
Business:                                      http://www.lemburg.com/
Python Pages:                           http://www.lemburg.com/python/