Re: [Orbit-python-list] Where are the constants?
Status: Inactive
Brought to you by:
tack
From: Gustavo J. A. M. C. <gj...@in...> - 2004-01-22 11:26:39
|
A Qui, 2004-01-22 =E0s 11:08, Will Denissen escreveu: > Does this mean that pyOrbit can not marshal fixed length arrays? > Is there a workaround? I guess it can, though I never tried it before. I don't see how it relates to the other problem, though. The only problem I'm aware of is that pyorbit is not importing the symbols for the consts. I am not aware of any types not working in pyorbit. >=20 > Will >=20 > "Gustavo J. A. M. Carneiro" wrote: > >=20 > > To answer your questions, pyorbit is the only maintained project, > > right now. However, pyorbit's maintainer, James Henstridge, is a bit > > busy, lately. If you have a problem, you better come up with a patch= to > > solve it, otherwise it's unlikely he will find time to solve it. > > Regarding the constants, that is a known problem with pyorbit. You= 're > > not doing anything wrong. But I can offer you no more help. Perhaps > > you should file a bug report in bugzilla.gnome.org. In the mean time= , > > you can just copy-paste the consts to your python source, as a > > workaround. > >=20 > > Good luck.. > >=20 > >=20 > > A Qui, 2004-01-22 =E0s 09:39, Will Denissen escreveu: > > > Dear orbit-python experts, > > > > > > I'm new to python and new to orbit-python and heve the following si= mple > > > problem. > > > Given the simple.idl: > > > > > > --- simple.idl ------- > > > > > > module M { > > > interface my_I { > > > const long my_const =3D 3; > > > > > > struct my_struct { > > > long my_member[my_const]; > > > }; > > > > > > long my_func > > > ( > > > out my_struct my_out > > > ); > > > }; > > > }; > > > > > > --- end of simple.idl ------- > > > > > > Given the following session: > > > > > > wsasd649:~ % python > > > Python 2.2.1 (#1, Sep 12 2002, 16:24:44) > > > [GCC 3.1.1] on sunos5 > > > Type "help", "copyright", "credits" or "license" for more informati= on. > > > >>> import sys,ORBit > > > >>> ORBit.load_file("simple.idl") > > > >>> dir() > > > ['ORBit', '__builtins__', '__doc__', '__name__', 'sys'] > > > >>> import M > > > >>> dir() > > > ['M', 'ORBit', '__builtins__', '__doc__', '__name__', 'sys'] > > > >>> dir(M) > > > ['__doc__', '__name__', 'my_I'] > > > >>> dir(M.my_I) > > > ['__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute_= _', > > > '__getstate__', '__hash__', '__init__', '__module__', '__new__', > > > '__reduce__', '__repr__', '__setattr__', '__slots__', '__str__', > > > '__typecode__', '_duplicate', '_hash', '_is_a', '_is_equivalent', > > > '_is_nil', '_narrow', '_non_existent', 'my_func', 'my_struct'] > > > >>> > > > > > > I can find import module M and its content M.my_I, M.my_I.my_struct= , and > > > M.my_I.my_func. > > > > > > I havegot the following questions: > > > - WHERE has my_const gone? How can i access it? > > > - Do I need another import? > > > - Could there be placed an example on the internet that shows > > > a simple idl and how to access its content within python. > > > - I know there are two freeware ORBit python bindings: pyORBit and > > > ORBit-python > > > which one is the most mature, and why should I use it? > > > > > > PS: I am using pyORBit for the ORBit python binding > > > > > > Thanks in advance, > > > > > > Will Denissen. > > -- > > Gustavo Jo=E3o Alves Marques Carneiro > > <gj...@in...> <gu...@us...> > > The universe is always one step beyond logic. --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> The universe is always one step beyond logic. |