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

John Salerno johnjsal at
Sat May 20 05:11:09 CEST 2006

Aahz wrote:

> Python 2.5a2 (trunk:46052, May 19 2006, 19:54:46)
> [GCC 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> open is file
> False
> Per the other comments in this thread, Guido agreed that making open() a
> synonym of file() was a mistake, and my patch to split them was accepted.
> Still need to do more doc update (per Uncle Timmy complaint), but that
> shouldn't be too hard.

Interesting. What is the difference between them now?

More information about the Python-list mailing list