[issue1727780] 64/32-bit issue when unpickling random.Random

2007-12-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed as r59295. Because of the version change, the patch cannot be applied to 2.5.x -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-11-08 Thread Peter Maxwell
Peter Maxwell added the comment: For the record, and to prevent dilution of the count of times this bug has been encountered: this issue is a duplicate of issue1472695, which was later marked "won't fix" for no apparent reason. sligocki's patch is more thorough than mine was and I hope it has

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-23 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- assignee: -> loewis severity: normal -> major _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list ma

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-17 Thread Shawn Ligocki
Shawn Ligocki added the comment: Yep, tested it on a 64-bit machine and 2 32-bit machines and back and forth between them. It seems to resolve the problem. _ Tracker <[EMAIL PROTECTED]>

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-17 Thread Martin v. Löwis
Changes by Martin v. Löwis: -- keywords: +patch _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-17 Thread Shawn Ligocki
Shawn Ligocki added the comment: I've got a patch! The problem was that the state was being cast from a C-type unsigned long to a long. On 32-bit machines this makes large 32-bit longs negative. On 64-bit machines this preserves the sign of 32-bit values (because they are stored in 64-bit longs)

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-16 Thread Martin v. Löwis
Martin v. Löwis added the comment: Would anybody of you like to work on a patch? -- nosy: +loewis _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-15 Thread sligocki
sligocki added the comment: I've had this same problem with 2.5.1 Pickling random.getstate() on 64bit and then loading it back with random.setstate() on 32bit does not work (crashes because of trying cast 64bit ints to 32bit). The other way around is even worse. It loads but is in a faulty stat

[issue1727780] 64/32-bit issue when unpickling random.Random

2007-09-15 Thread sligocki
Changes by sligocki: -- versions: +Python 2.5 -Python 2.4 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscr