A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-October/029270.html below:

PEP239 (Rational Numbers) Reference Implementation and new issues

[Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issues [Python-Dev] Re: PEP239 (Rational Numbers) Reference Implementation and new issuesAndrew Koenig ark@research.att.com
07 Oct 2002 09:47:45 -0400
Greg> If rationals and slice objects were the same thing,
Greg> it wouldn't matter!

Andrew> But then how would you distinguish between x[1:4] and x[2:8]?

Greg> Well, if you reduced the rational to lowest terms you
Greg> would have to keep the original values around for when
Greg> you were using it as a slice object...

In that case, wouldn't you have a situation where a==b, a and b are
the same type, but x[a]!=x[b]?

-- 
Andrew Koenig, ark@research.att.com, http://www.research.att.com/info/ark



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