This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zeero
Recipients zeero
Date 2015-08-13.19:20:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439493646.78.0.611197737465.issue24859@psf.upfronthosting.co.za>
In-reply-to
Content
I'm implementing a CAN SAEJ1939 stack in Python and convert CAN message ids in between integers and structures, tunneling them through a Union object with 4 bytes like what i would do in C.

I was checking that particular function and the 3 priority bits were at the wrong position. Some trials later i concluded the bits are reversed and inverted the order in my structure. Now it works fine.

I'm not sure if it's a bug but i would expect ctypes.Structure to
store the fields in the order i provide and not the other way around.
On the other hand the bytes are in the order i provided.

The System I'm running on is 64Bit Ubuntu AMD A1046 but it shows the same behaviour an a 64bit Windows 7 Intel I5
History
Date User Action Args
2015-08-13 19:20:46zeerosetrecipients: + zeero
2015-08-13 19:20:46zeerosetmessageid: <1439493646.78.0.611197737465.issue24859@psf.upfronthosting.co.za>
2015-08-13 19:20:46zeerolinkissue24859 messages
2015-08-13 19:20:46zeerocreate