diff -Naur Python-3.1.old/Objects/capsule.c Python-3.1/Objects/capsule.c --- Python-3.1.old/Objects/capsule.c 2009-05-06 00:31:58.000000000 +0200 +++ Python-3.1/Objects/capsule.c 2009-06-28 11:24:33.000000000 +0200 @@ -33,7 +33,7 @@ /* if either is NULL, */ if (!name1 || !name2) { /* they're only the same if they're both NULL. */ - return name2 == name2; + return name1 == name2; } return !strcmp(name1, name2); }