[Biopython-dev] platform independence for eol routines in Martel

Andrew Dalke dalke at acm.org
Wed Nov 8 03:02:40 EST 2000


Jeff:
>I've always wanted an os.eol variable that's set to the proper end of line
>character(s) for your platform.  I think it's been brought up before on
>comp.lang.python.  I don't remember why the idea was shot down.

I think it's because "\n" is always supposed to be newline, and you
need to use the right open flags ("t" instead of "b") to get the
translation.  The "\r", "\r\n", or "\n" is only used in binary mode.

Still, I agree.

                    Andrew






More information about the Biopython-dev mailing list