<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Lada Kugis wrote:
<blockquote cite="mid:1ej5t4930m29h0f6ttpdcd83t08q2q3sab@4ax.com"
 type="cite">
  <pre wrap="">On 01 Apr 2009 01:26:41 GMT, Steven D'Aprano
<a class="moz-txt-link-rfc2396E" href="mailto:steven@REMOVE.THIS.cybersource.com.au"><steven@REMOVE.THIS.cybersource.com.au></a> wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">Why Python (and other languages) count from zero instead of one, and 
why half-open intervals are better than closed intervals:

<a class="moz-txt-link-freetext" href="http://www.johndcook.com/blog/2008/06/26/why-computer-scientists-count-from-zero/">http://www.johndcook.com/blog/2008/06/26/why-computer-scientists-count-from-zero/</a>
<a class="moz-txt-link-freetext" href="http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html">http://www.cs.utexas.edu/users/EWD/transcriptions/EWD08xx/EWD831.html</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->
steven, thanks for answering,

yes, i saw the second one a little time ago (someone else posted it as
well in really cute handwriting version :) and the first time just
now, but the examples which both of them give don't seem to me to be
that relevant, e.g. the pros don't overcome the cons.

imho, although both sides (mathematical vs engineer) adress some
points, none of them give the final decisive argument.
i understand the math. point of view, but from the practical side it
is not good. it goes nicely into his tidy theory of everything, but
practical and intuitive it is not. as i said, being an engineer, i
tend towards the other side, so this is biased opinion (nobody can be
unbiased) but from a practical side it seems unpractical for
engineering problems (and to me, the purpose of computers is to help
humans to build a better world, not to prove theories - theories are
useless if they don't help us in reality. so we should try to adapt
computing to real world, not our world to computers).
  </pre>
</blockquote>
Speaking about "reality", it would have saved a lot of time (but maybe
not fun) to just do :<br>
<br>
>>> myRange = lambda x : range(1, x+1)<br>
>>> myRange(4)<br>
[1, 2, 3, 4]<br>
<br>
Put it in a file named "MyIntuition.py" in the python path, and then in
your programs you can code :<br>
from MyIntuition import myRange<br>
<br>
<br>
<br>
<br>
</body>
</html>