confusion about opening files

Mark McEahern marklists at
Mon Sep 23 23:05:35 EDT 2002

[Erik Max Francis]
> Note:  open() is an alias for file().

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'.


// m


More information about the Python-list mailing list