[Tutor] Re: newbie question
Tue, 11 Jul 2000 19:16:14 +0200
On Tue, Jul 11, 2000 at 05:01:03PM +0000, Alan Gauld wrote:
> Hi, Just back from a short vacation and found your
> > Now my question is why it is necessary to add
> > the sentences = sentences +...
> > and clauses = clauses +... lines? Why not just:
> > self.c_sentence = self.c_sentence + self.c_punctuation[c]
> Nope, I don't know why I used a local variable
> - I don't in the non OO version. Maybe I was tired!
> Another poster generously suggested it was a
> possible performance improvement but I honestly
> doubt I was that alert. It certainly doesn't help
> a newbie...
Grin. I already had the feeling I was seeing too much into it when I thought
up some explanations :).
I don't know, I think I still like using the local better. But that's just a
matter of taste, of course :)
Remco Gerlich, firstname.lastname@example.org