[Biopython-dev] text files and mac

Nicolas Rapin nicolas.rapin at bric.ku.dk
Thu Dec 9 16:54:34 UTC 2010


I have had this problem actually, from txt files exported from excel (for mac obviously).
The only work around I could find was to convert the CR terminated into LF terminated files. (textmate does that)
 
hope that helps in some way.

n 

On Dec 9, 2010, at 5:34 PM, Tiago Antão wrote:

> 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
> 
> _______________________________________________
> Biopython-dev mailing list
> Biopython-dev at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biopython-dev





More information about the Biopython-dev mailing list