[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: Isn't it possible for a >64-bit architecture to have intptr_t be wider than long long? As for my use-case, I am wrapping the C-API for Rust. Rust can call and be called by C (and therefore Python), but a Rust "int" is a C "intptr_t", and a Rust "uint" is a

[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread Devin Jeanpierre
Devin Jeanpierre added the comment: With regards to the title change, I would prefer a FromIntMax_t (and FromUintMax_t) to a FromIntPtr_t. The former covers every use case of the latter, and more. -- ___ Python tracker

[issue17870] Python does not provide a PyLong_FromIntptr_t() function

2013-04-29 Thread STINNER Victor
Changes by STINNER Victor : -- title: Hard to create python longs from arbitrary C integers -> Python does not provide a PyLong_FromIntptr_t() function ___ Python tracker ___ __