confusion about opening files
Erik Max Francis
max at alcyone.com
Tue Sep 24 00:10:28 EDT 2002
Mark McEahern wrote:
> I read somewhere that 'file' was preferred to the use of 'open'
> because of
> the symmetry to the type:
> >>> f = file("junk.txt")
> >>> type(f)
> <type 'file'>
> Anyway, that's how I've trained myself to spell 'open'.
It probably is, but only works in more recent versions of Python. At
any rate, it wasn't what the original poster was asking about, so I
didn't bother addressing it.
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ The average dog is a nicer person than the average person.
\__/ Andrew A. Rooney
Bosskey.net: Counter-Strike / http://www.bosskey.net/cs/
A personal guide to Counter-Strike.
More information about the Python-list