Message852

Author ellisj
Recipients
Date 2004-02-25.21:23:11
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Logged In: YES 
user_id=657828

The behavior Steven describes is PyFile-related, not struct-
related.  You could verify this by checking that value == 
unpack(format, pack(format, value))[0].

I don't think PyFile's behavior when writing binary data to a 
non-binary file is really a bug; more like acceptable platform-
specific behavior.  [The responsible party is 
PyFile.FileFormat.getBytes.]  If you change 'w' and 'r' to 'wb' 
and 'rb' in Steven's example, Jython gives the same results as 
CPython.
History
Date User Action Args
2008-02-20 17:17:15adminlinkissue753790 messages
2008-02-20 17:17:15admincreate