Problem with 'struct' module

Matt Feinstein nospam at
Tue Jun 14 16:06:31 CEST 2005

Using the 'struct' module (Win32, python version 2.4.1)--

The library documentation says that 'no alignment is required for any
type'. However,  struct.calcsize('fd') gives 16 while
struct.calcsize('df') gives 12, implying that double precision data
has to start on a double-word boundary. 

Matt Feinstein

There is no virtue in believing something that can be proved to be true.

More information about the Python-list mailing list