[Python-Dev] file() or open()?
Jeremy Hylton
jeremy at alum.mit.edu
Wed Jul 7 13:39:42 CEST 2004
On Tue, 2004-07-06 at 23:08, Guido van Rossum wrote:
> > I have always used open() myself. does this mean we should continue
> > to use open()?
>
> IMO, yes. My posting was intended to draw attention to the fact that
> apparently some developers think differently. I'm hoping to revert
> their opinions unless there's a really good reason to switch to
> file().
+1 from me. We've been using "open()" to mean open for about as long as
there have been Python programs, right? I don't see any value to
changing the name at this point, and I see harm in having inconsistent
use of open vs. file in the standard library.
Jeremy
More information about the Python-Dev
mailing list