Steven Bethard steven.bethard at gmail.com
Fri Jul 29 22:26:29 CEST 2005

Jason Drew wrote:
> Also, I think using file("C:\file.txt") is now preferred
> to open("C:\file.txt").

Guido has said he wants to keep open() around as the way to open a 
file-like object, with the theory that in the future open might also 
support opening non-files (e.g. urls).  So open("C:\file.txt") is still 
fine, though isinstance(f, open) is probably not. ;)


More information about the Python-list mailing list