Re: Ri:Ri: [ctypes-users] Structure in function
by Bob Ippolito other posts by this author
Aug 11 2003 4:11PM messages near this date
Re: Ri:Ri: [ctypes-users] Structure in function
|
[ctypes-users] Structure's metaclass
On Monday, Aug 11, 2003, at 11:51 America/New_York, Thomas Heller wrote:
> Bob Ippolito <bob@[...].com> writes:
>
> > It's now in CtypesTodoList
>
> Thanks.
>
> But I was thinking in a different direction: Why not give up binary
> strings (containing NUL characters) completely, and use arrays of
> c_byte of c_ubytes instead, if you need them?
Because dealing with binary data as integers is not pythonic. Python
handles arbitrary binary data with the str type. I can't even think of
a use case for "I want a bunch of binary data as a int8", and even if
you had a real one, you could use array, numeric, numarray, or
struct.unpack.
-bob
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
ctypes-users mailing list
ctypes-users@[...].net
https://lists.sourceforge.net/lists/listinfo/ctypes-users
Thread:
Thomas Heller
Bob Ippolito
|