open is not obsolete (was Re: understanding self
t-meyer at ihug.co.nz
Thu Jul 8 02:32:42 CEST 2004
> But wait -- open() is an obsolete built-in function for
> opening a file.
> I'll just like to point out that open() is in no way
> obsolete, even if it's aliased to "file".
FWIW, there's discussion about this very thing at the moment on python-dev.
There is some confusion there about whether file() is prefered to open() or
not. It seems that many people think it is, and the current documentation
gives that idea, but Guido definitely does not feel that way, and so open()
is still the way to go (and the documentation will probably change to
More information about the Python-list