Problem!!

Dan Stromberg drsalists at gmail.com
Mon Jul 4 01:54:16 CEST 2011


You'll probably want to give more detail about what your code is doing and
what it should be doing.  Mindreading is hard, especially when it's
accurate.

Usually the main difference between *ix and windows for text files is the
line endings though - on *ix, you can open a file as text or binary, and
things are the same.  On windows, you need to read a text file as 'r' and a
binary file as 'rb'.

See also dos2unix and unix2dos.

BTW, are you using a native windows python, or a cygwin python?  Are you
using python 2.x or 3.x?  CPython, PyPy, Jython, Pyjamas, IronPython...?

On Sun, Jul 3, 2011 at 4:41 PM, amir chaouki <chaouki.amir at gmail.com> wrote:

> i have written code on linux for parsing text files and it works great
> but when i try to run it on windows it goes crazy, do you have any
> idea???
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20110703/8a5e0615/attachment.html>


More information about the Python-list mailing list