Devin Jeanpierre added the comment: > Write your own C extension to do that. Sorry, I don't know what is the best > way to write such C extension.
If everyone who wants to convert intptr_t to a python int has to write their own function, then why not just include it in the C-API? Having support for intmax_t means we never have to have this conversation ever again, because it should work for all int types. Reopening since this use-case doesn't sound solved yet. ---------- resolution: rejected -> status: closed -> open _______________________________________ 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