473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

python usage

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
Jul 18 '05 #1
4 1679
Phanish schrieb:
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.

--
-------------------------------------------------------------------
Peter Maas, M+R Infosysteme, D-52070 Aachen, Tel +49-241-93878-0
E-mail 'cGV0ZXIubWFhc0BtcGx1c3IuZGU=\n'.decode('base64')
-------------------------------------------------------------------
Jul 18 '05 #2
>>>>> "Phanish" == Phanish <ph**************@hp.com> writes:

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.

--
Ville Vainio http://tinyurl.com/2prnb
Jul 18 '05 #3
"Ville Vainio" <vi***@spammers.com> wrote in message
news:du*************@amadeus.cc.tut.fi...
>> "Phanish" == Phanish <ph**************@hp.com> writes:


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
Jul 18 '05 #4
> 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.
Jul 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Peter Mutsaers | last post by:
Hello, Up to now I mostly wrote simple filter scripts in Perl, e.g. while(<>) { # do something with $_, regexp matching, replacements etc. print; } Now I learned Python and like it much...
8
by: Sridhar R | last post by:
Hi, I am a little experienced python programmer (2 months). I am somewhat experienced in C/C++. I am planning (now in design stage) to write an IDE in python. The IDE will not be a simple...
1
by: M.E.Farmer | last post by:
Hello c.l.py!, I have just finished this and decided to share. PySourceColor is a module to convert Python source into colored html. Yes it has been done before, but I like this better:) You can...
0
by: Robby Dermody | last post by:
Hey guys (thus begins a book of a post :), I'm in the process of writing a commercial VoIP call monitoring and recording application suite in python and pyrex. Basically, this software sits in a...
4
by: jiang.haiyun | last post by:
Hello all, when i import SOAPpy, the python crashed and print out 'usage:copy source destination'. As follows: ############################ haiyun# python Python 2.4.1 (#2, Mar 28 2006,...
17
by: frederic.pica | last post by:
Greets, I've some troubles getting my memory freed by python, how can I force it to release the memory ? I've tried del and gc.collect() with no success. Here is a code sample, parsing an XML...
0
by: greg.novak | last post by:
I am using Python to process particle data from a physics simulation. There are about 15 MB of data associated with each simulation, but there are many simulations. I read the data from each...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 404 open ( +0) / 3855 closed ( +8) / 4259 total ( +8) Bugs : 1065 open ( +6) / 6790 closed ( +6) / 7855 total (+12) RFE : 263 open...
1
by: yzghan | last post by:
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write(" " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.