Message230054
> Why not use c_size_t? Or is that incorrect in some cases?
Strictly speaking, size_t doesn't have to encompass the entire addressable range, such as for architectures that use segmented addressing (e.g. near and far pointers). Practically speaking, no platform supported by ctypes makes this distinction, so c_size_t and c_ssize_t use the platform pointer size.
https://hg.python.org/cpython/file/ab2c023a9432/Lib/ctypes/__init__.py#l459
OTOH, it's best to avoid accumulating layers of assumptions. |
|
Date |
User |
Action |
Args |
2014-10-27 01:35:42 | eryksun | set | recipients:
+ eryksun, amaury.forgeotdarc, belopolsky, pitrou, meador.inge, steve.dower |
2014-10-27 01:35:42 | eryksun | set | messageid: <1414373742.25.0.281779499665.issue22732@psf.upfronthosting.co.za> |
2014-10-27 01:35:42 | eryksun | link | issue22732 messages |
2014-10-27 01:35:41 | eryksun | create | |
|