Aahz wrote:
> On Tue, Jan 12, 2010, Tim Roberts wrote:
>
>> I would pass the struct as a string of 14 bytes, then use
>> emp_name, emp_ID = struct.unpack( '=10cI', incoming )
>>
>> class employee:
>> def __init__( self, name, id ):
>> self.name = name
>> self.id = id
>>
On Tue, Jan 12, 2010, Tim Roberts wrote:
>
> I would pass the struct as a string of 14 bytes, then use
> emp_name, emp_ID = struct.unpack( '=10cI', incoming )
>
> class employee:
> def __init__( self, name, id ):
> self.name = name
> self.id = id
> def to_file( self, f
a h wrote:
>
> I have witten C code which call a function defined in python, passing
> an structure, but couldn't know how to pass c structure into a python
> function(data conversion) and how to write python script
> function which takes an c structure and fill value into it (commented
> portion)
Hi
I have witten C code which call a function defined in python, passing an
structure, but couldn't know how to pass c structure into a python
function(data conversion) and how to write python script function which
takes an c structure and fill value into it (commented portion)
I have looked at st