473,943 Members | 9,473 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1708
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 'cGV0ZXIubWFhc0 BtcGx1c3IuZGU=\ n'.decode('base 64')
-------------------------------------------------------------------
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.c c.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 interoperabilit y 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
4046
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 more as a language.
8
2123
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 one. I had an idea of writing the IDE in C/C++, as it is a big project, bcoz of the following 1. if python is used, then the memory required for running the IDE will be high.
1
2584
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 easily define your own colorscheme. example usage: # Highlight PySourceColor.py python PySourceColor.py or # Show help
0
1611
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 VoIP callcenter-type environment (complete with agent phones and VoIP servers), sniffs voice data off of the network, and allows users to listen into calls. It can record calls as well. The project is about a year and 3 months in the making and...
4
5448
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, 21:00:14) 20040728] on freebsd5 Type "help", "copyright", "credits" or "license" for more information. usage:copy source destination
17
8508
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 file under linux python 2.4 (same problem with windows 2.5, tried with the first example) : #Python interpreter memory usage : 1.1 Mb private, 1.4 Mb shared #Using http://www.pixelbeat.org/scripts/ps_mem.py to get memory information
0
3097
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 simulation into Numpy arrays and do a simple calculation on them that involves a few eigenvalues of small matricies and quite a number of temporary arrays. I had assumed that that generating lots of temporary arrays would make my program run slowly,...
0
266
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 ( +0) / 295 closed ( +0) / 558 total ( +0) New / Reopened Patches ______________________
1
1740
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 = {} i = 1000*1000 while i 0:
1
2061
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 the objects for which that memory was allocated are no longer live in the process. This is only a leak if peak memory goes up again each time you create any new objects. Try repeated allocations of a large dictionary and observe how memory...
0
10138
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
11300
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10665
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9865
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8222
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7391
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6310
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4512
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.