altering an object as you iterate over it?
Marc 'BlackJack' Rintsch
bj_666 at gmx.net
Fri May 19 16:56:07 EDT 2006
In <1Kpbg.42822$Qq.36241 at tornado.texas.rr.com>, Paul McGuire wrote:
> 1. open("xxx") still works - not sure if it's even deprecated or not - but
> the new style is to use the file class
It's not deprecated and may be still used for opening files. I guess the
main reason for introducing `file` as a synonym was the possibility to
inherit from builtins. Inheriting from `open` looks quite strange.
Ciao,
Marc 'BlackJack' Rintsch
More information about the Python-list
mailing list