The attached patch fixes an issue with byte order in PyMac_GetOSType (and its reverse). These functions convert from an OSType to a string (and back) by interpreting an OSType as a 4-byte string. This is not correct if you're not on a big-endian system, such as some of the future Apple systems. The attached patch is for python 2.4.1.