A little disappointed so far

Graham Nicholls graham at rockcons.co.uk
Mon May 19 07:31:24 EDT 2003


Ype Kingma wrote:

> Graham,
> 
> Jay O'Connor wrote:
> 
>> On Mon, 19 May 2003 02:17:39 +0100, Graham Nicholls
>> <graham at rockcons.co.uk> wrote:
>> 
>>>
>>>BTW, my i=i+1 bug - how do you avoid these, or are they common?
> 
> Iirc from your code you only use i to index a list of words.
> If that is the case you might also:
> 
> for word in listOfWords:
>     ...
> 
> and avoid using i completely.
> 
> Kind regards,
> Ype Kingma
> 
> 
How do I then handle the -o [filename case]  I hate the idea of an
"ignore_this_word" flag for the next time around the loop.

-- 
Graham Nicholls
All round good guy.




More information about the Python-list mailing list