--- Python/thread_pthread.h.ori 2011-04-15 17:39:43.000000000 +0000 +++ Python/thread_pthread.h 2011-04-15 17:40:03.000000000 +0000 @@ -602,9 +602,6 @@ PyThread_set_key_value(int key, void *value) { int fail; - void *oldValue = pthread_getspecific(key); - if (oldValue != NULL) - return 0; fail = pthread_setspecific(key, value); return fail ? -1 : 0; }