Is there a way that Python and C can have a shared definition for a
binary data structure?
It could be nice if:
1. struct or ctypes had a function that could parse a .h/.c/.cpp file
to auto-generate constructors
or
2. a ctypes definition could be exported to a .h file.
So my question is - is ther
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 p
cis wrote:
> Yuvgoog Greenle wrote:
>>
>> 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 ove