> So the first argument evaluated is "self" ... and in your case
"self" is
> "open(item, 'w')" so the first thing your line does is opening for
> writing the file named by "item" and as "w" empty the file ... you
can
> read it afterward, it will be empty !

Ah! well spotted Pierre, I hadn't noticed that both input and
output files were the same file!

Alan G.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to