STINNER Victor added the comment:

> Hold on, nobody ever answered the question in the OP. How would you convert 
> an intptr_t (e.g. Rust's int type) to a Python int?

Write your own C extension to do that. Sorry, I don't know what is the best way 
to write such C extension.

Maybe look at https://github.com/PyO3/PyO3 ? cc Yury

----------
nosy: +yselivanov

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

Reply via email to