altering an object as you iterate over it?

Marc 'BlackJack' Rintsch bj_666 at
Fri May 19 22:56:07 CEST 2006

In <1Kpbg.42822$Qq.36241 at>, 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.

	Marc 'BlackJack' Rintsch

More information about the Python-list mailing list