For faster navigation, this Iframe is preloading the Wikiwand page for Jython.

Jython

Jython
原作者Jython
首次发布2001年1月17日,​23年前​(2001-01-17[1]
当前版本
  • 2.7.3 (2022年9月10日;稳定版本)[2]
编辑维基数据链接
原始码库 编辑维基数据链接
编程语言PythonJava
操作系统跨平台
平台Java虚拟机
类型Python解释器
许可协议Python软件基金会许可证(旧版本请见Jython#许可协议
网站www.jython.org

Jython(原JPython),是一个用Java语言写的Python解释器

概述

Jython程序可以和Java无缝集成。除了一些标准模块,Jython使用Java的模块。Jython几乎拥有标准的Python中不依赖于C语言的全部模块。比如,Jython的用户界面将使用SwingAWT或者SWT。Jython可以被动态或静态地编译成Java字节码

Jython还包括jythonc,一个将Python代码转换成Java代码的编译器。这意味着Python程序员能够将自己用Python代码写的类库用在Java程序里。

许可协议

Jython同时使用以下三种协议授权:[3]

  1. Python软件基金会许可证(v2)
  2. Jython 2.0, 2.1许可协议
  3. JPython 1.1.x软件许可协议

前两个是自由软件协议。第三个还不清楚,因为还没有被自由软件基金会接受。

历史

Jim Hugunin于1997年创造了Jython,并将它发展到1999年。1999年2月,Barry Warsaw接管了他的工作。2000年十月,Jython项目被移动到SourceForge。很长一段时间内主要由Samuele Pedroni负责维护和开发Jython。2004年底,Pedroni将精力集中在PyPy,但他仍然被认为是Jython内部管理层的一员。2005年1月,Brian Zimmer因开发Jython而得到Python软件基金会的资助。2005年12月,Frank Wierzbicki作为主要开发者接替了Zimmer的工作。2005年,Jython的发展因为缺少优秀的开发者而放缓

2008年3月3日,太阳计算机公司就像之前雇佣2名JRuby开发者那样请来Ted Leung和Frank Wierzbicki为Jython和Python工作。[4] 开发进度稳步增长。[5][6] Jython现在甚至可以运行Django(类似于Ruby on Rails框架).[7]

现状和未来

当前的Jython版本是2017年7月1日发布的Jython 2.7.1

Jython的优点

  • 与相似的Java程序相比,Jython极大减少了程序代码量。
  • Jython同时拥有解释器编译器,使其无需编译就可以测试程序代码。

参考资料

  1. ^ Wierzbicki, Frank. jython: 3d8067c56a1d NEWS. 2015-03-22 [2015-03-28]. (原始内容存档于2020-02-17). 
  2. ^ 2.0 2.1 Release v2.7.3. 
  3. ^ The Jython License. Jython's project. [2008-02-09]. (原始内容存档于2008-02-23). 
  4. ^ Leung, Fred. The Sun is going to shine on Python. 2008-03-03 [2008-03-03]. (原始内容存档于2017-10-25). 
  5. ^ WhosDoingWhat. Jython's Wiki. 2007-12-29 [2008-02-09]. (原始内容存档于2017-11-27). 
  6. ^ Nutter, Charles. Jython's Back, Baby!. 2008-01-03 [2009-05-31]. (原始内容存档于2016-03-08). 
  7. ^ Baker, Jim. Django on Jython: Minding the Gap. 2008-01-03 [2009-05-31]. (原始内容存档于2009-06-30). 

参阅

外部链接

{{bottomLinkPreText}} {{bottomLinkText}}
Jython
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 🎉! the new version arrives on September 1st! Don't want to wait?