This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Devin Jeanpierre, benjamin.peterson, josh.r, mark.dickinson, pitrou, serhiy.storchaka, vstinner, yselivanov
Date 2017-06-14.21:51:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1497477089.98.0.0864403647044.issue17870@psf.upfronthosting.co.za>
In-reply-to
Content
> 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
History
Date User Action Args
2017-06-14 21:51:30vstinnersetrecipients: + vstinner, mark.dickinson, pitrou, benjamin.peterson, Devin Jeanpierre, serhiy.storchaka, yselivanov, josh.r
2017-06-14 21:51:29vstinnersetmessageid: <1497477089.98.0.0864403647044.issue17870@psf.upfronthosting.co.za>
2017-06-14 21:51:29vstinnerlinkissue17870 messages
2017-06-14 21:51:29vstinnercreate