[Tutor] Advice for my function, isPrime(n), please

Dick Moores rdm at rcblue.com
Sat Jul 19 14:23:16 CEST 2008


At 04:44 AM 7/19/2008, Kent Johnson wrote:
>On Sat, Jul 19, 2008 at 5:03 AM, Dick Moores <rdm at rcblue.com> wrote:
>
> >> > Readability counts.  <--
> >>
> >> Personally I think my way is more readable. It says what it means
> >> without any fluff. IMO it is explicit, readable, concise and to the
> >> point.
> >
> > Well, readability is in the eye of the reader. Also, because I lived in
> > Japan 30 years, I could throw a concise, explicit, and 
> to-the-point Japanese
> > sentence at you that you wouldn't understand at all.
>
>Yes, and then if I complained that the sentence was not readable you
>would rightly conclude that the problem was with the reader, not the
>sentence.

Maybe we're running my analogy into the failure it deserves.

Your basic point is that  return x != 0  is standard, idiomatic 
Pythonese and I'm wrong to complain. I should suck it up and study 
harder. Point taken. I welcome this addition to my Python vocabulary.

Dick




More information about the Tutor mailing list