DO NOT USE file() (was Re: altering an object as you iterate over it?)

John Salerno johnjsal at NOSPAMgmail.com
Sat May 20 06:34:10 CEST 2006


Tim Peters wrote:
> [John Salerno, on the difference between `open` and `file`]
>> Interesting. What is the difference between them now?
> 
> In 2.5 `file` is unchanged but `open` becomes a function:
> 
>>>> file
> <type 'file'>
>>>> open
> <built-in function open>

So they are still used in the same way though?



More information about the Python-list mailing list