Re: [Python-Dev] 128 bit integer support

2013-12-05 Thread Meador Inge
On Wed, Dec 4, 2013 at 8:15 AM, Antoine Pitrou solip...@pitrou.net wrote: Aren't you talking about the struct module? In ctypes, it seems it would be sufficient to add a c_int128 type (and/or c_uint128). Even in ctypes these codes are used internally for the field descriptors. For ctypes

[Python-Dev] 128 bit integer support

2013-12-04 Thread Fil Mackay
I have been doing some research on getting int128_t supported in Python, and have hit a snag: I've found that libffi does support this type, but sadly ctypes and cffi do not. Adding to ctypes does not seem to be trivial, since the description of an integer type is limited to a single character (q

Re: [Python-Dev] 128 bit integer support

2013-12-04 Thread Antoine Pitrou
Hi Fil, On Wed, 4 Dec 2013 23:17:11 +1100 Fil Mackay f...@pobox.com wrote: I've found that libffi does support this type, but sadly ctypes and cffi do not. Adding to ctypes does not seem to be trivial, since the description of an integer type is limited to a single character (q in the case