Interesting article at O’Reilly “Understanding Newlines” which is written for Perl but holds true for Python, too. I knew about possible problems but did not run into any problems with newlines yet. But the actual details I did not know completely and so understand why Subversion complains about a mix of newline characters in files I have checked in (which probably was coworkers and me use different editors with even different option settings). Now I also understand what textmode opening of files actually does. This may seem ignorant but until now I almost always worked with textfiles anyway which do not cause problems when using the default textmode filemode of Python and other languages…
Anyway, interesting article, also because some infos about unicode newline characters.
