[pyorbit] libIDL

Andy Dustman adustman at comstar.net
Fri Oct 22 16:01:21 EDT 1999


My libIDL doesn't link against the ORBit IDL library. I'm guessing this is
a Makefile problem. I manually adjusted the makefile (added -lIDL to the
link flags) and it now works. I'm thinking, this really ought to be called
IDLmodule instead of libIDLmodule.

For snicks, I wrote a teeny program to parse and dump the IDL parse tree.

#!/usr/bin/python
import libIDL

def dump_tree(tree, indent=0):
    from types import TupleType, ListType
    t = tree.get_type()
    v = tree.get_value()
    print " "*indent, t, v
    if type(v) not in (TupleType, ListType):
        v = (v,)
    for subtree in v:
        if type(subtree) is type(tree):
            dump_tree(subtree, indent=indent+2)

if __name__ == "__main__":
    import sys
    dump_tree(libIDL.parse_filename(sys.argv[1]))

Works on the Typesmodule/Types.idl.

Is anyone actively working on using this for marshalling/demarshalling, as
opposed to using C stubs/skeletons? I would assume that's part of the
point of this module...

My impression so far is that pyorbit and ORBit are quite fast.

-- 
andy dustman       |     programmer/analyst     |      comstar.net, inc.
telephone: 770.485.6025 / 706.549.7689 | icq: 32922760 | pgp: 0xc72f3f1d






More information about the pyorbit mailing list