473,545 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Good use for Jython

Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?

Mike Wimpe

Jul 18 '05 #1
6 2813
Mike Wimpe wrote:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython?


What ever gave you the impression that Jython was targeted only at
people who wanted to do GUI development?
--
Michael Hoffman
Jul 18 '05 #2
On 15 Mar 2005 23:54:16 -0800, Mike Wimpe <mi*******@yaho o.com> wrote:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?

Mike Wimpe

--
http://mail.python.org/mailman/listinfo/python-list


I haven't done anything substatial with Jython yet, but I consder it
to be valuable in areas where you have to do something quick and
dirty, perhaps debug an EJB running on an app server for example.

Bean shell serves the same purpose and the syntax is pretty much Java
so the learning curve isn't as steep for java developers.

I see it as a way of getting around some of the requirements of the
language. If I needed to connect to java systems together and I needed
to do it quickly, and the quality of requirements was less than
adequate, I'd rather write a script(beanshel l/jython/groovy) than
booting up eclipse and contributing to the interface cesspool .

--
Thomas G. Willis
http://paperbackmusic.net
Jul 18 '05 #3
Mike Wimpe wrote:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?


I use Jython a lot. I have a background in Java and I am working in a Java shop, but I prefer to
code in Python, so Jython has some appeal:
- Works with existing Java libraries, both in-house proprietary libs and favorite third-party libs.
The third-party libs probably have Python equivalents, but it's nice to be able to keep using some
favorite tools.
- Doesn't add any new requirements to the target machine (just needs the JRE they already have,
Python install not needed) (yes, I know about py2exe)
- No one has to know :-) I can ship a jar file (or several) that contains my program, it looks just
like Java.

A recent poster on jython-users had switched from Python to Jython because he preferred Swing over
the GUI toolkits available with Python so I guess there is room for more than one opinion on that point.

Kent
Jul 18 '05 #4
On 15 Mar 2005 23:54:16 -0800, Mike Wimpe <mi*******@yaho o.com> wrote:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?

Mike Wimpe

--
http://mail.python.org/mailman/listinfo/python-list


I use an embedded Jython interpreter extensively for the business
logic layer of a Servlet/J2ee application. The back end uses,
Hibernate to connect to the database, so Jython's JavaBean
functionality is very useful for me, vastly simplifying and clarifying
my own logic.

As an added bonus, it is vastly easier to debug and redeploy a Jython
script file into a running system than it is to do the same with a
session EJB.

--
Sean Blakey
Saint of Mild Amusement, Evil Genius, Big Geek
Python/Java/C++/C(Unix/Windows/Palm/Web) developer
quine = ['print "quine =",quine,"; exec(quine[0])"'] ; exec(quine[0])
Jul 18 '05 #5
The only reason i can think of to use it would be for the purpos of using an Applet in a WebPage, as
the Jythonc tool can compile Jython classes to Java byte code.

But if your not in need of an Applet, then youll probably want to go with a normal Python GUI
toolkit like wxPython (or QT or Tkinter....).

Peter

----- Original Message -----
From: "Mike Wimpe" <mi*******@yaho o.com>
Newsgroups: comp.lang.pytho n
To: <py*********@py thon.org>
Sent: Tuesday, March 15, 2005 11:54 PM
Subject: Good use for Jython

Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?

Mike Wimpe

--
http://mail.python.org/mailman/listinfo/python-list


--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 3/15/2005

Jul 18 '05 #6
Mike Wimpe <mi*******@yaho o.com> wrote or quoted:
Other than being used to wrap Java classes, what other real use is
there for Jython being that Python has many other GUI toolkits
available? Also, these toolkits like Tkinter are so much better for
client usage (and faster) than Swing, so what would be the advantage
for using Jython? or Is Jython really just so that Java developers can
write Java code faster?


Jython allows Python programmers to access to the large volume of
existing Java code and libraries - and provides access to a ubiquitous
and widely distributed runtime environment.
--
__________
|im |yler http://timtyler.org/ ti*@tt1lock.org Remove lock to reply.
Jul 18 '05 #7

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

Similar topics

6
2102
by: Dave Benjamin | last post by:
Hey good people, I've been doing a lot of simultaneous Jython and CPython programming lately, and just wanted to say, with no intended ill will toward any of the individuals who have been generous enough to make the two languages possible, that, well, they're kinda different. I guess it was inevitable, but with Jython stuck at Python 2.1,...
4
3412
by: angel | last post by:
A java runtime environment includes jvm and java class (for example classes.zip in sun jre). Of course jython need jvm,but does it need java class. Thanx
1
2280
by: scott | last post by:
I installed darwinports and did a "sudo port install jython" ------------------------- scott$ which jython /opt/local/bin/jython ------------------------- Jython works in interactive mode as shown below:
2
1797
by: Hal Vaughan | last post by:
I'm self taught and most of what I've been working on for the past several years has been entirely in Perl and Java. I've noticed that I can code about 5 times faster in Perl than Java, in part because I feel like whenever I want to do something in Java, I have to create an object, do a few preperatory things, then do what I need, but in...
12
5896
by: Mark Fink | last post by:
I wrote a Jython class that inherits from a Java class and (thats the plan) overrides one method. Everything should stay the same. If I run this nothing happens whereas if I run the Java class it says: usage: java fit.FitServer host port socketTicket -v verbose I think this is because I do not understand the jython mechanism for...
3
2557
by: Sloan.Kohler | last post by:
Is Jython development dead or has it just seemed that way for over a year?. The jython.org website has a recent new appearance (but no new content) and there is some message traffic on the developer site at Sourceforge. However nothing has been released for over a year (i.e. no support for Python 2.3, 2.4 or 2.5). Is seems that IronPython...
206
8176
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a footprint which says: "Indeed, one often hears arguments against building exibility into an engineered sys- tem. For example, in the philosophy of...
4
2036
by: Neil Wallace | last post by:
Hi all, I am a novice Python/Jython programmer, and Ubuntu user. Ubuntu still only supports only version 2.1 of Jython. I have used the GUI installer of Jython 2.2, and installed it to the default /root/jython2.2 directory. The install went without issues. However, typing ............jython --version in a teminal still gives me ...
5
3598
by: sarup26 | last post by:
Hello .. I would like to know more about Python and Jython? What is the difference between both of them? What is the future for Jython and which are the areas where it is used? Swot
0
7659
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. ...
0
7811
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...
1
7428
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...
0
7760
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...
1
5334
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...
0
4949
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...
0
3455
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...
1
1887
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1019
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.