Re: ? about file() and open()

From: Mark McEahern (marklists_at_mceahern.com)
Date: 01/03/05


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



Relevant Pages

  • Re: Keyboard Events
    ... Looks like you need to dive into Win32 ... combined with ctypes. ... Google is your friend ...
    (comp.lang.python)
  • Re: Sean Lennon on Letterman Tonight TV Alert
    ... The topper, for me, was the self-pitiful story about a broken female ... relationship caused, in his view, by his best friend who had then died, ... As for Sean and Paris Hilton, I heard Mintz was thinking of employing ... share his every "tragedy" via his songs. ...
    (rec.music.beatles)
  • Google Side Bar - Object reference not set to an instance of an object.
    ... I'm using VB.NET to create an add-in for the Google Sidebar, ... I've come across this same problem (error message) even in C#. ... Win32 Version: 1.1.4322.2032 ... CodeBase: ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sean Lennon on Letterman Tonight TV Alert
    ... Sean Lennon on Letterman Tonight ... He sang a song, and talked briefly with Letterman. ... and the friend has since passed away. ...
    (rec.music.beatles)
  • Re: Advantages of .net?
    ... with no compiled DLLs then it would be safe to migrate to it, depending ... Win32 is still a sure bet -- even more sure than .NET ... > Sure, i know google. ...
    (borland.public.delphi.non-technical)