Possible Duplicate:
How do I determine the size of an object in Python?
In C if I do
USHORT x;
ULONG y;
ULONGLONG yy;
printf("%d %d %d\n", sizeof(x), sizeof(y), sizeof(yy))
Output: 2 4 8
How can I get this in Python if I were to to
valByte = 0x16
valWord = 0x1234
valDWord = 0x12345678
val64Word = 0x1234567887654321
Output I expect should be 1, 2, 4, 8
thanks