(from stdlib-sig) ctypes or struct from an h file

Yuvgoog Greenle ubershmekel at gmail.com
Sun Oct 18 16:20:50 EDT 2009


I'd like to clarify the use case.

Lets say you're writing a client and a server, one is in python and
the other is C. If these 2 programs need to pass binary information
between them (lets say over a socket) there are 2 options, it could be
nice if you could only write the struct once (either in python or in
C) without any Cython or C extension (for portability and ease of
development's sake).

Just trying to keep it DRY...

--yuv



More information about the Python-list mailing list