<div class="gmail_quote">On Mon, Sep 28, 2009 at 4:29 PM, &quot;Martin v. Löwis&quot; <span dir="ltr">&lt;<a href="mailto:martin@v.loewis.de">martin@v.loewis.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I guess a close case would be rational numbers: clearly, 3÷2 == 6÷4;<br>
would a Python library still remember (and repr) the original numerator<br>
and denominator?<br></blockquote></div><br>No need for a hypothetical, rational numbers were added in Python 2.6:<br><br>Python 2.6.2 (r262:71600, Apr 15 2009, 07:20:39)<br>[GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin<br>
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.<br>&gt;&gt;&gt; import fractions<br>&gt;&gt;&gt; fractions.Fraction(6,4)<br>Fraction(3, 2)<br><blockquote style="margin: 1.5em 0pt;">
--<br>
Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com">Stutzbach Enterprises, LLC</a>
</blockquote>