[Python-Dev] an idea for improving struct.unpack api (original) (raw)
Bob Ippolito bob at redivi.com
Fri Jan 7 15:41:27 CET 2005
- Previous message: [Python-Dev] an idea for improving struct.unpack api
- Next message: [Python-Dev] an idea for improving struct.unpack api
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] an idea for improving struct.unpack api
- Next message: [Python-Dev] an idea for improving struct.unpack api
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]