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 10:52:32
|
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. Good luck.. =20 A Qui, 2004-01-22 =E0s 09:39, Will Denissen escreveu: > Dear orbit-python experts, >=20 > I'm new to python and new to orbit-python and heve the following simple > problem. > Given the simple.idl: >=20 > --- simple.idl ------- >=20 > module M { > interface my_I { > const long my_const =3D 3; >=20 > struct my_struct { > long my_member[my_const]; > }; >=20 > long my_func > ( > out my_struct my_out > ); > }; > }; >=20 > --- end of simple.idl ------- >=20 > Given the following session: >=20 > wsasd649:~ % python > Python 2.2.1 (#1, Sep 12 2002, 16:24:44)=20 > [GCC 3.1.1] on sunos5 > Type "help", "copyright", "credits" or "license" for more information. > >>> 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'] > >>>=20 >=20 > I can find import module M and its content M.my_I, M.my_I.my_struct, an= d > M.my_I.my_func. >=20 > 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? >=20 > PS: I am using pyORBit for the ORBit python binding=20 >=20 > Thanks in advance, >=20 > Will Denissen. --=20 Gustavo Jo=E3o Alves Marques Carneiro <gj...@in...> <gu...@us...> The universe is always one step beyond logic. |