[issue8469] struct - please make sizes explicit
Mark Dickinson
report at bugs.python.org
Tue Apr 20 16:30:47 CEST 2010
Mark Dickinson <dickinsm at gmail.com> added the comment:
As Alexander says, *all* the sizes except those for bytes are platform-dependent: there are platforms where sizeof(short) isn't 2, for example, or where sizeof(int) isn't 4.
It would be possible to add the 'standard' sizes to that table (i.e. the sizes that you get when using '<', '>', etc.); would that be helpful? If you're trying to write cross-platform code then you should probably be using standard size, alignment and byte order anyway.
----------
assignee: -> mark.dickinson
nosy: +mark.dickinson
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8469>
_______________________________________
More information about the Python-bugs-list
mailing list