Author erik.bray
Recipients EdSchouten, erik.bray
Date 2016-08-23.13:30:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471959007.14.0.692337316567.issue25658@psf.upfronthosting.co.za>
In-reply-to
Content
I agree--this has the same problem on Cygwin, where pthread_key_t is not just a typedef'd integer (in fact it's a pointer to an instance of a class).

Anyways as Ed wrote above POSIX says this is supposed to be an opaque type and there's no reason to assume it's an integer. Linux could change its definition tomorrow and we'd have no one to blame but ourselves if it breaks Python.

If it's too hard to change the Python API, at the very least the change in #22206 should be reverted or reworked somehow, because there's no reason to assume that pthread_key_t can even be compared safely to an integer, much less that it would be less than INT_MAX.
History
Date User Action Args
2016-08-23 13:30:07erik.braysetrecipients: + erik.bray, EdSchouten
2016-08-23 13:30:07erik.braysetmessageid: <1471959007.14.0.692337316567.issue25658@psf.upfronthosting.co.za>
2016-08-23 13:30:07erik.braylinkissue25658 messages
2016-08-23 13:30:07erik.braycreate