>>>>> Steven D'Aprano <ste...@remove.this.cybersource.com.au> (SD) wrote:

>SD> What you describe is impossible -- os.listdir() returns an ordinary list, 
>SD> it isn't a lazy iterator that updates automatically as the directory 
>SD> changes. (At least not in Python2.5 -- I haven't checked Python 3.1.) 

He's not using Python3, see the print statement and the file function.
But even with the appropriate changes the behaviour will be the same in
3.1 as in 2.x.
-- 
Piet van Oostrum <p...@cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to