Re: ? about file() and open()
From: Mark McEahern (marklists_at_mceahern.com)
Date: 01/03/05
- Next message: Michael Sparks: "Re: PEP 288 ponderings"
- Previous message: Alex Martelli: "Re: How to make executable file ?"
- In reply to: Sean: "? about file() and open()"
- Next in thread: Reinhold Birkenfeld: "Re: ? about file() and open()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sun, 02 Jan 2005 17:19:42 -0600 To: Sean <D.Sean.Morris@gmail.com>
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
- Next message: Michael Sparks: "Re: PEP 288 ponderings"
- Previous message: Alex Martelli: "Re: How to make executable file ?"
- In reply to: Sean: "? about file() and open()"
- Next in thread: Reinhold Birkenfeld: "Re: ? about file() and open()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|