Message296043
| 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 |
|