Erik Bray added the comment:

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.

----------
nosy: +erik.bray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue25658>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to