Wednesday 6 May 2009 — This is over 15 years old. Be careful.
Tell you what: I’ll be careful not to create Python kits with \r\n in the source files, if you Mac guys will stop including files like ._setup.py in your tarballs. OK, thanks. Resume coding...
Comments
I've ran in to case sensitive file naming issues more than newline issues, Foo.py and foo.py, but I'm a recent Mac convert, so I don't sympathize anymore, hehe.
And, sure, an SCM may be able to hide this difference as well. But not all files are shared via SCMs. (Downloaded a tarball lately? Or just pulled a source file directly off someone's website?)
Sorry, I'm with Ned on this one. I run into this all the time. 'Even have a shell command I cooked up to auto remove the '\r's from files...
This is important when you consider editor features like auto-wrapping; a file auto-wrapped using a tab-width of 2 will look like hell when later viewed with a tab-width of 8, and vice-versa. The problem is compounded in team environments where the code ends up inconsistently wrapped as different people edit various parts of files.
Using tabs "in your house" is fine, but be prepared to convert all those tabs to spaces (or have them converted for you!) when you go to share that code with someone outside your house.
...and, yeah, anyone that mixes tabs and spaces needs to be taken out back and given a good smack down! :-)
By the way, up until OS 9, Mac OS used CR as its line ending character.
At least that is the case for tarballs (the default setup.py sdist format on Mac).
Add a comment: