Charles Hixson wrote:
> Python files wouldn't do, because I needed to 
> do i/o to C compatible files written in binary mode.  [Yeah, on Linux 
> it's not supposed to make an difference.  But the binary representation 
> of a long or a short IS different from the Python representation.])

I'm not sure what the problem is. The struct module uses
the platform's native byte order by default for ints and
longs, or lets you specify big-endian or little-endian.

If you want to do it with Cython, then you're really
doing it in C, and teaching people how to do I/O in C
is not Cython's responsibility.

-- 
Greg
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to