473,603 Members | 2,591 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 1695
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
4021
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
2096
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
2567
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
1585
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
5423
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
8465
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
3076
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
1721
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
2033
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
7928
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8415
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...
0
8405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8060
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
8273
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
5441
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
3903
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1514
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.