New submission from Mads Kiilerich <m...@kiilerich.com>:

The struct module is often used (at least by me) to implement protocols  and 
binary formats. That makes the exact sizes (number of bits/bytes) of the 
different types very important.
Please add the sizes to for example the table on 
http://docs.python.org/library/struct . I know that some of the sizes varies 
with the platform, and in these cases it is fine to define it in terms of the C 
types, but for Python programmers writing cross-platform code such variable 
types doesn't matter and are "never" used. (I assume that it is possible to 
specify all possible types in a cross-platform way, but I'm not sure and the 
answer is not obvious from the documentation.)

----------
components: Library (Lib)
messages: 103699
nosy: kiilerix
severity: normal
status: open
title: struct - please make sizes explicit
versions: Python 2.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue8469>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to