python usage

P

Phanish

Hi, One of my customer wants me to use Python as a test scripting
language. The architecture is as follows: An C++/Java UI obtains all
required inputs from the user and then makes call to Python script
which inturns calls c++ client stubs. These stubs are CORBA stubs
which talk to a CORBA server residing some where in the network.
I want to know as to whether it is feasible to use Python or just live
with c++ for UI and stubs?
Is it good to use Python for this purpose? What is the advantage?
Thanks
Phanish
 
P

Peter Maas

Phanish said:
Hi, One of my customer wants me to use Python as a test scripting
language. The architecture is as follows: An C++/Java UI obtains all
required inputs from the user and then makes call to Python script
which inturns calls c++ client stubs. These stubs are CORBA stubs
which talk to a CORBA server residing some where in the network.
I want to know as to whether it is feasible to use Python or just live
with c++ for UI and stubs?

I would leave the UI untouched and implement the script and the
CORBA stubs in Python. The advantage is that Python code requires
less typing and is easier and more flexible as C++ code. It makes
testing your ideas faster. But if you will be comfortable with Python
is up to you. Try and see.
 
V

Ville Vainio

Phanish> which inturns calls c++ client stubs. These stubs are
Phanish> CORBA stubs which talk to a CORBA server residing some
Phanish> where in the network. I want to know as to whether it is
Phanish> feasible to use Python or just live with c++ for UI and
Phanish> stubs?

One thing you may not yet know is that Python absolutely rocks for
CORBA - seeing how elegant CORBA can be is one of the reasons I
decided to check out Python in the first place. OmniORB is the ORB I
would check out first if I were you...

Phanish> Is it good to use Python for this purpose? What is the
Phanish> advantage?

Well, you should just try implementing it in Python. Try something
like PythonCard + OmniORB combo. If you can get it done in 2 days, you
will know that you have a winner in your hands :).

Advantages: maintainability and, deriving from that,
flexibility/modifiability. You are much more likely to even consider
modifying an existing Py program than a C++ program. C++ programs are
best left alone once they reach something resembling a functional
stage.
 
P

Paul McGuire

Ville Vainio said:
Phanish> which inturns calls c++ client stubs. These stubs are
Phanish> CORBA stubs which talk to a CORBA server residing some
Phanish> where in the network. I want to know as to whether it is
Phanish> feasible to use Python or just live with c++ for UI and
Phanish> stubs?

One thing you may not yet know is that Python absolutely rocks for
CORBA - seeing how elegant CORBA can be is one of the reasons I
decided to check out Python in the first place. OmniORB is the ORB I
would check out first if I were you...
<snip>

I too have had very good results using Python with CORBA. However, beware
of interoperability issues, especially with proprietary ORBs. CORBA is not
entirely as interoperable as one would hope.* Do a few experiments if you
are writing Python/OmniORB clients to non-OmniORB servers, or vice versa.

* this information is a little bit old, things may have improved in the past
year...

-- Paul
 
J

Jeff Lindholm

Hi, One of my customer wants me to use Python as a test scripting
language. The architecture is as follows: An C++/Java UI obtains all
required inputs from the user and then makes call to Python script
which inturns calls c++ client stubs. These stubs are CORBA stubs
which talk to a CORBA server residing some where in the network.
I want to know as to whether it is feasible to use Python or just live
with c++ for UI and stubs?
Is it good to use Python for this purpose? What is the advantage?
Thanks
Phanish

If all you are testing is the CORBA object, then go all Python, if you are
using it to create a prototype or something, then use the language that is
the final target. (if you can make the final target Python, great)
There is no reason to try and find a reason to use Python (or any language),
if you are only using it to say "Look I used Python here" then it is
probably the wrong choice. Going from C++/Java UI to Python back to C++/Java
why put Python in the middle? I would guess that C++/Java to CORBA would be
better if C++/Java was the requirement. If Python is the requirement then
Python to CORBA would be better.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,202
Messages
2,571,058
Members
47,668
Latest member
SamiraShac

Latest Threads

Top