Hiding

Steven Bethard steven.bethard at gmail.com
Fri Jul 29 16:26:29 EDT 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. ;)

STeVe



More information about the Python-list mailing list