Sean wrote:

Was wondering if there was any difference between these two functions.


None, as shown here:

D:\Python23>python
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
True
>>>


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:

http://www.google.com/search?q=file+vs.+open+python

http://mail.python.org/pipermail/python-dev/2004-July/045931.html

// m
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to