I've tried this and I cannot figure out why this does not work. I figure this has something to do with order of operations. I figured someone would know exactly why it doesn't work. Wouldn't this start inside parens then from left to right?
open(item,'w').write(open(item,'r').read().replace(' ','')) I tried this on the shell just trying to do some quick text replacement because I could figure out how to get awk to do it, and I didn't want to spend 5 hours RTFM. I got it to work by breaking it up to several statements, but I would like to know. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor