problems iterating over a files lines
James Henderson
james at logicalprogression.net
Wed Jan 21 12:07:24 EST 2004
On Wednesday 21 January 2004 4:27 pm, James Henderson wrote:
> If you used file.read().splitlines() instead you would avoid the extra
> blank line.
Or even file.readlines(). D'oh!
Though this keeps the newlines on the end of each file.
--
James Henderson, Logical Progression Ltd.
http://www.logicalprogression.net/
http://sourceforge.net/projects/mailmanager/
More information about the Python-list
mailing list