drsalists at gmail.com
Sun Jul 3 19:54:16 EDT 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
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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-list