Message166559
As shown in a patch in issue15431, frozen.c does not output the same data on different platforms.
The first difference looks like this (extracted from the patch):
- 101,73,255,255,255,255,0,0,0,0,40,10,0,0,0,117,
+ 101,108,3,0,0,0,255,127,255,127,3,0,40,10,0,0,
On first row, 'I' followed by 0xFFFFFFFF on 8 bytes.
On second row, 'l' followed by 3 followed by 0xFFFFFFFF (in 3 chunks of 15 bits).
The Python number 0xFFFFFFFF is marshalled with TYPE_INT64 when SIZEOF_LONG>4 (Unix 64bit), and with TYPE_LONG on other platforms (32bit, or win64)
The C "long" type has much less importance in 3.x Python, because PyIntObject does not exist anymore.
I suggest to remove this distinction, and allow TYPE_INT64 on all platforms.
I don't see any compatibility issue, on unmarshalling both methods produce the same object.
I'll try to suggest a patch later today. |
|
Date |
User |
Action |
Args |
2012-07-27 12:50:59 | amaury.forgeotdarc | set | recipients:
+ amaury.forgeotdarc, pitrou |
2012-07-27 12:50:59 | amaury.forgeotdarc | set | messageid: <1343393459.17.0.272006722766.issue15466@psf.upfronthosting.co.za> |
2012-07-27 12:50:58 | amaury.forgeotdarc | link | issue15466 messages |
2012-07-27 12:50:58 | amaury.forgeotdarc | create | |
|