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

Lowell Tackett lowelltackett at yahoo.com
Sat Jul 19 15:28:25 CEST 2008



>From the virtual desk of Lowell Tackett  



--- On Sat, 7/19/08, Dick Moores <rdm at rcblue.com> wrote:

> From: Dick Moores <rdm at rcblue.com>
> Subject: Re: [Tutor] Advice for my function, isPrime(n), please
> To: "Python Tutor List" <tutor at python.org>
> Date: Saturday, July 19, 2008, 8:23 AM
> 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
> 
> Just a comment from the sidelines...this ongoing discourse, and its' humorous diversions, has been a fun read-and made some good pedagogial points-in its' own right.  Always a good thing to never take ones' self too seriously, isn't it?!

Thanks for the <intelligent> wandering from strict tutorial protocol!
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor


      



More information about the Tutor mailing list