Yuvgoog Greenle wrote:
Ok I see your point that C is ambiguous concerning compiler
implementation. I think #pragma pack should work out the padding issue
but I'm not sure if the floating point issue is solvable.

I don't have an idea for solving that one...

#pragma is implementation defined and need not be supported by any compilers.

The proper way to do this is to define a protocol and translate it to the native structures on both sides of the communication -- both in Python and in C. There's really no way around this.

--
Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/
 San Jose, CA, USA && 37 18 N 121 57 W && AIM/Y!M/Skype erikmaxfrancis
  Diplomacy and defense are not substitutes for one another. Either
   alone would fail. -- John F. Kennedy, 1917-1963
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to