On Jan 7, 2005, at 9:33 AM, Thomas Heller wrote:

Bob Ippolito <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to