regex line by line over file

Chris Angelico rosuav at
Thu Mar 27 05:41:31 CET 2014

On Thu, Mar 27, 2014 at 3:14 PM, James Smith <bjlockie at> wrote:
> I tried the re.M in the compile and that didn't help.

Okay. Try printing out the repr of the line at the point where you
have the commented-out write to stdout. That might tell you if there's
some other difference. At that point, you'll know if the issue is with
reading it from the file.

Also, please either stop using Google Groups, or clean up its messes.
I don't like having to read through piles of double-spaced junk in the
quoted text. Thanks!


More information about the Python-list mailing list