ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ctypes-users
ctypes-users
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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved