[issue17926] PowerLinux dbm failure in 2.7

2013-05-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue9687. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___ ___

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread David Edelsohn
Changes by David Edelsohn dje@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___ ___ Python-bugs-list

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread David Edelsohn
New submission from David Edelsohn: The PowerLinux buildslave fails in test_dbm:test_keys() because of a problem with the in operator. import dbm d = dbm.open('t','c') a = [('a', 'b'), ('12345678910', '019237410982340912840198242')] for k,v in a: ... d[k] = v ... print d dbm.dbm

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread David Edelsohn
Changes by David Edelsohn dje@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___ ___ Python-bugs-list mailing

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try the other dbm methods? e.g. has_key(), get()... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Forget it, can you just try the following patch? diff --git a/Modules/dbmmodule.c b/Modules/dbmmodule.c --- a/Modules/dbmmodule.c +++ b/Modules/dbmmodule.c @@ -168,11 +168,13 @@ dbm_contains(register dbmobject *dp, PyObject *v) { datum key, val; +

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread David Edelsohn
David Edelsohn added the comment: My example and test_dbm succeeds on Python2.7 with your patch applied. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok. This is a classic example of why a big-endian buildbot is useful :) -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926 ___

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 53da3bad8554 by Antoine Pitrou in branch '2.7': Issue #17926: Fix dbm.__contains__ on 64-bit big-endian machines. http://hg.python.org/cpython/rev/53da3bad8554 -- nosy: +python-dev ___ Python tracker

[issue17926] PowerLinux dbm failure in 2.7

2013-05-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thank you. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17926