[Tutor] learning new features of python

spir denis.spir at free.fr
Thu Feb 26 19:43:29 CET 2009


Le Thu, 26 Feb 2009 18:16:59 +0000 (GMT),
ALAN GAULD <alan.gauld at btinternet.com> s'exprima ainsi:

> 
> > >> Similaraly in Alan Guald Learn to program link, he has given
> > >> information on opening a file with file() and open() functions.
> > >
> > > And in V3 they took that back out again :-(
> > 
> > ?? open() is in V3. file() is not.
> 
> That's right, they have reverted to how it was in Python 1.X
> I changed all my pages to use file() in v2.2 then changed them 
> to use a mixtyuure of file() and open() in 2.4 and now I'm changing 
> them all back to open() for v3! :-(
> 
> Alan G.

Does someone know why this choice has been made? After all, the result is a file object, so imo it's consistent to use file() like for any other type.

Denis
------
la vita e estrany


More information about the Tutor mailing list