[New-bugs-announce] [issue6859] stdint (eg. uint64_t) for ctypes

STINNER Victor report at bugs.python.org
Tue Sep 8 01:58:08 CEST 2009


New submission from STINNER Victor <victor.stinner at 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 <report at bugs.python.org>
<http://bugs.python.org/issue6859>
_______________________________________


More information about the New-bugs-announce mailing list