[Biopython-dev] text files and mac
Tiago Antão
tiagoantao at gmail.com
Thu Dec 9 16:34:38 UTC 2010
Hi,
I am writing this email to ask for some advice (many thanks in advance
for any suggestion).
I was contacted regarding a bug on the genepop parser on mac (I have
no Mac, so I really do not have how to test, neither experience
developing there).
The parser opens a text file but, on the mac, sometimes the file is CR
terminated (is this from old Mac versions? I would expect Mac OS X to
be text a-la unix - ie CR-LF).
Well, I've found a recommendation to open files with the U modifier (
http://www.gossamer-threads.com/lists/python/dev/755361 ).
My question is simple (actually two questions):
1. What is the best practice to open text files in terms of modifiers for open?
2. How common is this format on Mac? Is it old stuff or still used? I
have around 20% Mac users and this was never a reported problem.
Many thanks,
Tiago
--
"If you want to get laid, go to college. If you want an education, go
to the library." - Frank Zappa
More information about the Biopython-dev
mailing list