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

Paul Rubin http
Sat May 20 00:42:10 EDT 2006


"Tim Peters" <tim.peters at gmail.com> writes:
> In 2.5 `file` is unchanged but `open` becomes a function:
> 
> >>> file
> <type 'file'>
> >>> open
> <built-in function open>

So which one are we supposed to use? 



More information about the Python-list mailing list