"W W" <[email protected]> wrote in message news:[email protected]...
On Tue, May 5, 2009 at 5:41 AM, spir <[email protected]> wrote:

Le Tue, 5 May 2009 00:41:39 +0100,
"Alan Gauld" <[email protected]> s'exprima ainsi:

> > Backwards compatibility.  The file type was introduced in python 2.2,
> > before which there was open.
>
> And file has been removed again in Python v3....
> In fact open is now an alias for io.open and no longer simply returns
> a file object - in fact the file type itself is gone too!

I, for one, am glad it is gone again. It took awhile to train myself not to write:

   file = open('filename.txt')

and incorrectly shadow the built-in. It's just the most natural name for the variable :^)

-Mark

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to