altering an object as you iterate over it?

Bruno Desthuilliers bdesth.quelquechose at
Sat May 20 04:53:45 CEST 2006

John Salerno a écrit :
> Paul McGuire wrote:
>> Your coding style is a little dated - are you using an old version of
>> Python?  This style is the old-fashioned way:
> I'm sure it has more to do with the fact that I'm new to Python, but 
> what is old-fashioned about open()? 

It has been, at a time, recommended to use file() instead of open(). 
Don't worry, open() is ok - and I guess almost anyone uses it.

More information about the Python-list mailing list