A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2005-January/050774.html below:

[Python-Dev] an idea for improving struct.unpack api

[Python-Dev] an idea for improving struct.unpack api [Python-Dev] an idea for improving struct.unpack apiBob Ippolito bob at redivi.com
Fri Jan 7 15:41:27 CET 2005
On Jan 7, 2005, at 9:33 AM, Thomas Heller wrote:

>> Bob Ippolito <bob at redivi.com> writes:
>
>>> This is my ctypes-like attempt at a high-level interface for struct.
>>> It works well for me in macholib:
>>> http://svn.red-bean.com/bob/py2app/trunk/src/macholib/ptypes.py
>
> Michael Hudson <mwh at python.net> writes:
>>
>> Unsurprisingly, that's fairly similar to mine :)
>
> So, why don't you both use the original?
> ctypes works on the mac, too ;-)

I did use the original for the prototype of macholib!  Then I wrote a 
version in pure python to eliminate the compiler dependency and ended 
up adding way more features than I actually needed (variable length 
nested structures and stuff like that).  Eventually, I scaled it back 
to this so that it was easier to maintain and so that I could make some 
performance optimizations (well as many as you can make with the struct 
module).

-bob

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4