altering an object as you iterate over it?
James Stroud
jstroud at ucla.edu
Fri May 19 16:36:35 EDT 2006
Paul McGuire wrote:
> Your coding style is a little dated - are you using an old version of
> Python? This style is the old-fashioned way:
[clip]
> 1. open("xxx") still works - not sure if it's even deprecated or not - but
> the new style is to use the file class
Python 2.3.4 (#4, Oct 25 2004, 21:40:10)
[GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
py> open is file
True
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list