? about file() and open()
marklists at mceahern.com
Sun Jan 2 18:19:42 EST 2005
>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)]
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:
More information about the Python-list