On 11/3/07, Adam Hupp <[EMAIL PROTECTED]> wrote:
> Also in array,  I'm not sure if array('u',...) .tofile and .fromfile
> works correctly.    Currently tofile writes out the raw unicode bytes
> without any encoding, and fromfile reads in without any decoding.   It
> seems like that could cause problems between e.g. 4 byte and 2 byte
> unicode builds, not to mention endianess issues.

This behavior is correct -- it is how it always worked in 2.x. The
array module writes machine specific data in general (try floats or
doubles or ints). For machine-independent binary data, the struct
module can help.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-3000 mailing list
Python-3000@python.org
http://mail.python.org/mailman/listinfo/python-3000
Unsubscribe: 
http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com

Reply via email to