New submission from STINNER Victor <victor.stin...@haypocalc.com>: It would be nice to have (at least) some stdint.h types in ctypes: - uint8_t, int8_t - int16_t, uint16_t - int32_t, uint32_t - uint64_t, int64_t
Attached fle is a Python implementation of that. stdint.h contains much more types, but I don't think that (u)int_leastXX_t/(u)int_fastXX_t are used in public structures/functions. Other interesting types/constants from stdint.h: - intptr_t / uintptr_t - (U)INT(8|16|32|64)_(MIN|MAX) - PTRDIFF_MAX ---------- components: Extension Modules files: stdint.py messages: 92403 nosy: haypo severity: normal status: open title: stdint (eg. uint64_t) for ctypes type: feature request Added file: http://bugs.python.org/file14858/stdint.py _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6859> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com