Dennis Lee Bieber a écrit : (snip)
All of which can be condensed into a simplefor ln in f: wrds = ln.strip() # do something with the words -- no whitespace to be seen
I assume you meant: wrds = ln.strip().split() ?-) -- http://mail.python.org/mailman/listinfo/python-list