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/
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