Alexandre Vassalotti wrote: > I often > see things like [line.strip() for line in open(file).readlines()],
If readline() stripped newlines, there would be no way to distinguish between an empty line and EOF. -- Greg _______________________________________________ Python-3000 mailing list Python-3000@python.org http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com