Friday, February 26, 2010

PEP 278 -- Universal Newline Support

PEP 278 -- Universal Newline Support

Gadzooks! - python file.readline() is broken on Mac newlines - even when running on Macs!

Who knew! Use file(path,'rU') to open your file with "Universal Newlines"

No comments:

Post a Comment