? about file() and open()

Mark McEahern marklists at mceahern.com
Sun Jan 2 18:19:42 EST 2005

Sean wrote:

>Was wondering if there was any difference between these two functions.
None, as shown here:

  Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] 
on win32
  Type "help", "copyright", "credits" or "license" for more information.
  >>> file == open

>I have read some text that said file() wasn't introduced until 2.2 and
>that it was synonymous with open().  Does this mean that I should be
>using file() where I used open() before?
Google is your friend:



// m

More information about the Python-list mailing list