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, josh.r, mark.dickinson, pitrou, serhiy.storchaka, vstinner
Date 2016-11-25.12:30:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1480077014.96.0.882591325282.issue17870@psf.upfronthosting.co.za>
In-reply-to
Content
New attempt to support C intmax_t type, since Python 3.6 now supports a subset of C99: intmax_t-4.patch. Changes:

Add support for C intmax_t type:

    Add new conversions functions for PyLong:
        PyLong_FromIntMax()
        PyLong_FromUIntMax()
        PyLong_AsIntMax()
        PyLong_AsIntMaxAndOverflow()
        PyLong_AsUIntMax()

    getargs: add 'm' format

    New _testcapi constants: INTMAX_MAX, INTMAX_MIN, UINTMAX_MAX, SIZEOF_INTMAX_T

    Add _testcapi.getargs_m() and _testcapi.test_long_intmax_api()

    PyLong_FromVoidPtr() uses PyLong_FromUIntMax()

    Use intmax_t in various modules

array, struct, ctypes and memoryview are not modified yet to support intmax_t.

--

To ease the review of this large patch, I created a GitHub pull request: https://github.com/python/cpython/pull/46
History
Date User Action Args
2016-11-25 12:30:15vstinnersetrecipients: + vstinner, mark.dickinson, pitrou, Devin Jeanpierre, serhiy.storchaka, josh.r
2016-11-25 12:30:14vstinnersetmessageid: <1480077014.96.0.882591325282.issue17870@psf.upfronthosting.co.za>
2016-11-25 12:30:14vstinnerlinkissue17870 messages
2016-11-25 12:30:13vstinnercreate