Check for new line character?

Yazar Yolait yazar at hotmail.com
Sun Oct 26 18:09:26 EST 2003


I want to skip lines in a file that are blank and that start with "&".  So I
strip(None) them and then startswith("&") but the only problem is if the
line has nothing but white space and I strip(None) it then it contains
nothing but a new line character right?  So how do I  check if the line
contains a new line character?  I can no longer use isspace().






More information about the Python-list mailing list