You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
(8) |
Dec
(51) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(105) |
Feb
(93) |
Mar
(194) |
Apr
(145) |
May
(100) |
Jun
(111) |
Jul
(117) |
Aug
(126) |
Sep
(233) |
Oct
(138) |
Nov
(164) |
Dec
(109) |
2002 |
Jan
(216) |
Feb
(175) |
Mar
(216) |
Apr
(194) |
May
(157) |
Jun
(140) |
Jul
(158) |
Aug
(73) |
Sep
(105) |
Oct
(164) |
Nov
(104) |
Dec
(95) |
2003 |
Jan
(72) |
Feb
(69) |
Mar
(81) |
Apr
(151) |
May
(101) |
Jun
(139) |
Jul
(99) |
Aug
(118) |
Sep
(115) |
Oct
(151) |
Nov
(161) |
Dec
(102) |
2004 |
Jan
(120) |
Feb
(175) |
Mar
(106) |
Apr
(111) |
May
(54) |
Jun
(78) |
Jul
(76) |
Aug
(105) |
Sep
(94) |
Oct
(143) |
Nov
(75) |
Dec
(85) |
2005 |
Jan
(99) |
Feb
(77) |
Mar
(164) |
Apr
(97) |
May
(79) |
Jun
(57) |
Jul
(65) |
Aug
(102) |
Sep
(95) |
Oct
(129) |
Nov
(123) |
Dec
(52) |
2006 |
Jan
(48) |
Feb
(99) |
Mar
(90) |
Apr
(51) |
May
(81) |
Jun
(136) |
Jul
(56) |
Aug
(109) |
Sep
(50) |
Oct
(44) |
Nov
(74) |
Dec
(75) |
2007 |
Jan
(92) |
Feb
(137) |
Mar
(93) |
Apr
(79) |
May
(52) |
Jun
(74) |
Jul
(143) |
Aug
(175) |
Sep
(154) |
Oct
(137) |
Nov
(88) |
Dec
(90) |
2008 |
Jan
(58) |
Feb
(113) |
Mar
(167) |
Apr
(88) |
May
(105) |
Jun
(37) |
Jul
(87) |
Aug
(72) |
Sep
(56) |
Oct
(41) |
Nov
(102) |
Dec
(70) |
2009 |
Jan
(115) |
Feb
(113) |
Mar
(126) |
Apr
(58) |
May
(125) |
Jun
(45) |
Jul
(90) |
Aug
(125) |
Sep
(84) |
Oct
(61) |
Nov
(111) |
Dec
(61) |
2010 |
Jan
(85) |
Feb
(86) |
Mar
(130) |
Apr
(58) |
May
(57) |
Jun
(32) |
Jul
(25) |
Aug
(50) |
Sep
(41) |
Oct
(65) |
Nov
(63) |
Dec
(24) |
2011 |
Jan
(43) |
Feb
(31) |
Mar
(28) |
Apr
(68) |
May
(53) |
Jun
(42) |
Jul
(58) |
Aug
(26) |
Sep
(51) |
Oct
(76) |
Nov
(60) |
Dec
(9) |
2012 |
Jan
(16) |
Feb
(32) |
Mar
(32) |
Apr
(39) |
May
(16) |
Jun
(19) |
Jul
(3) |
Aug
(11) |
Sep
(35) |
Oct
(47) |
Nov
(28) |
Dec
(18) |
2013 |
Jan
(18) |
Feb
(36) |
Mar
(10) |
Apr
(7) |
May
(7) |
Jun
(27) |
Jul
(17) |
Aug
(35) |
Sep
(19) |
Oct
(31) |
Nov
(8) |
Dec
(22) |
2014 |
Jan
(5) |
Feb
(11) |
Mar
(18) |
Apr
(23) |
May
(26) |
Jun
(14) |
Jul
(18) |
Aug
(26) |
Sep
(20) |
Oct
(48) |
Nov
(13) |
Dec
(9) |
2015 |
Jan
(9) |
Feb
(15) |
Mar
(25) |
Apr
(10) |
May
(26) |
Jun
(6) |
Jul
(13) |
Aug
(5) |
Sep
(14) |
Oct
(36) |
Nov
(24) |
Dec
(18) |
2016 |
Jan
(24) |
Feb
(11) |
Mar
(1) |
Apr
(6) |
May
(7) |
Jun
(3) |
Jul
(9) |
Aug
(15) |
Sep
(22) |
Oct
(5) |
Nov
(5) |
Dec
(2) |
2017 |
Jan
(20) |
Feb
(4) |
Mar
(4) |
Apr
(1) |
May
(5) |
Jun
(7) |
Jul
(14) |
Aug
(9) |
Sep
(18) |
Oct
(2) |
Nov
(3) |
Dec
(3) |
2018 |
Jan
(7) |
Feb
(6) |
Mar
(1) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
(18) |
Sep
(8) |
Oct
(9) |
Nov
(4) |
Dec
(6) |
2019 |
Jan
(5) |
Feb
|
Mar
(2) |
Apr
(4) |
May
(6) |
Jun
(8) |
Jul
(11) |
Aug
(10) |
Sep
(6) |
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
(8) |
Feb
(3) |
Mar
(1) |
Apr
(4) |
May
(1) |
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
(5) |
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
(5) |
Apr
(2) |
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2022 |
Jan
|
Feb
(2) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(7) |
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
(5) |
Jul
(15) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(5) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Chris C. <Chr...@ac...> - 2019-04-16 14:59:28
|
I stumbled across the initial_env setting at http://opensource.xhaus.com/projects/modjy/wiki/ModjyConfiguration/7 and I have a use for it so I gave it a go. I believe the documentation is incorrect on variable separators: A single name value pair is set by separating the name and value with a colon i.e. :*. Multiple name value pairs can be set by separating them with a semi-colon, i.e. *;. For example, if you wish to set the variable myAppString to STRING_VAL and myAppInteger to 42, then use the following value for this parameter: myAppString: STRING_VAL ; myAppInteger: 42. All names values are stored in the environment as strings. It claims a semi-colon should be used for the separator. Checking code https://github.com/jythontools/jython/blob/b9ff520f4f65231209d5200c22724516a72e75f2/Lib/modjy/modjy_wsgi.py#L142 and tests https://github.com/jythontools/jython/blob/b9ff520f4f65231209d5200c22724516a72e75f2/tests/modjy/java/com/xhaus/modjy/ModjyTestEnviron.java#L261 it looks like it a new line is expected (and testing this out works fine, semi-colon does not). Can anyone confirm/deny this? Thanks, Chris |
From: Fabio Z. <fa...@gm...> - 2019-03-27 13:49:56
|
PyDev 7.2.0 Release Highlights ------------------------------- * Debugger improvements (updated to pydevd 1.6.0). * Fixed issue quoting/unquoting parameters for subprocess. * Fixed exception breakpoints for Django and Jinja2. * Console hook import compatibility with matplotlib and pylab fixed. * Fixed issue where pipenv executable search was being executed over and over when it was not found. About PyDev --------------------------- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development, now also available for Python on Visual Studio Code. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. It is also available as a standalone through LiClipse with goodies such as multiple cursors, theming and support for many other languages, such as Django Templates, Jinja2, Html, JavaScript, etc. Links: PyDev: http://pydev.org PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode LiClipse: http://www.liclipse.com PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/ Cheers, Fabio Zadrozny |
From: Yaqiang W. <yaq...@gm...> - 2019-03-10 16:36:21
|
I just start NumJy project (https://github.com/Yaqiang/numjy) which is numpy similar package for Jython. It is developed with Java + Jython. The multiple array implemented based on the ucar.ma2 code. Apache commons math and ejml libraries were used for scientific computation. The project was peeled from MeteoInfo project so it can be used easily by other projects. DataFrame, 2D/3D plot and other packages will be released in the future which has been implemented in MeteoInfo project. Build the project and copy numjy folder into Lib->site-packages folder of Jython, then you can use NumJy as following. D:\MyProgram\java\MeteoThinkDev\NumJy>jython Jython 2.7.1 (default:0df7adb1b397, Jun 30 2017, 19:02:43) [Java HotSpot(TM) 64-Bit Server VM (Oracle Corporation)] on java11.0.1 Type "help", "copyright", "credits" or "license" for more information. >>> import numjy as np >>> a = np.arange(10) >>> a array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> a = a.reshape(2, 5) >>> a array([[0, 1, 2, 3, 4] [5, 6, 7, 8, 9]]) >>> a * 10 array([[0, 10, 20, 30, 40] [50, 60, 70, 80, 90]]) >>> It is welcome to use and test NumJy. Regards Yaqiang -- ************************************************* Dr. Yaqiang Wang Chinese Academy of Meteorological Sciences (CAMS) 46, Zhong-Guan-Cun South Avenue Beijing, 100081 China yaq...@gm... www.meteothink.org ************************************************** |
From: Jeff A. <ja...@fa...> - 2019-01-10 20:10:07
|
Could it be the underscore where one should have a minus/hyphen? For 2.7.1, anyway. But let's accept it has to be 2.2.1. I was successful just now using: java -jar jython_installer-2.2.1.jar -v -c on windows 10 and Java 1.8.0_181, and also double-clicking the JAR (which Windows ran using Java 11). I usually install at the command prompt with: java -jar jython_installer-2.2.1.jar which makes sure I get the right version of Java, but does the input graphically, while problems are reported on the console. Maybe your JAR is damaged? (The first one SourceForge gave me was, but Java reported it rather than hanging.) The working one I got directly from here: https://sourceforge.net/projects/jython/files/jython/2.2.1/. Jeff Allen On 10/01/2019 00:09, Adam Burke wrote: > Hi Yousra > > That's the error Java gives when you there is no file of that name ... > > C:\Users\Adam>java -jar nosuch.jar > Error: Unable to access jarfile nosuch.jar > > Cheers > Adam > > On Wed, 9 Jan 2019 at 22:41, MKHAKH, Yousra (AUSY FRANCE) > <you...@ai... > <mailto:you...@ai...>> wrote: > > Hello Adam, > > I get the following error: > > OS : Windows 7 > > JAVA : 1.8.0_66 > > Thanks for your help, > > Yousra > |
From: Adam B. <ada...@gm...> - 2019-01-10 00:10:03
|
Hi Yousra That's the error Java gives when you there is no file of that name ... C:\Users\Adam>java -jar nosuch.jar Error: Unable to access jarfile nosuch.jar Cheers Adam On Wed, 9 Jan 2019 at 22:41, MKHAKH, Yousra (AUSY FRANCE) < you...@ai...> wrote: > Hello Adam, > > > > I get the following error: > > > > > > OS : Windows 7 > > JAVA : 1.8.0_66 > > > > Thanks for your help, > > > > Yousra > > > > *De :* Adam Burke [mailto:ada...@gm...] > *Envoyé :* mercredi 9 janvier 2019 13:00 > *À :* MKHAKH, Yousra (AUSY FRANCE) > *Cc :* jyt...@li... > *Objet :* Re: [Jython-users] Installation Jython 2.2.1 > > > > Hi Yousra > > > > Can you try running the console installer and share what you see? > > > > java -jar jython-installer-2.7.0.jar --console > > https://wiki.python.org/jython/InstallationInstructions > > > > OS and Java versions would also be helpful. > > > > Cheers > > Adam > > > > On Wed, 9 Jan 2019 at 00:20, MKHAKH, Yousra (AUSY FRANCE) < > you...@ai...> wrote: > > Hi Adam, > > > > I need this version for a specific use at work. > > I am facing the same issue with the latest version 2.7.1 > > > > Yousra > > > > *De :* Adam Burke [mailto:ada...@gm...] > *Envoyé :* mardi 8 janvier 2019 14:04 > *À :* MKHAKH, Yousra (AUSY FRANCE) > *Cc :* jyt...@li... > *Objet :* Re: [Jython-users] Installation Jython 2.2.1 > > > > Hi Yousra > > > > Is there a specific reason you are installing 2.2 rather than 2.7.1 > (latest stable)? > > Cheers > > Adam > > > 在 2019年1月8日,下午10:46,MKHAKH, Yousra (AUSY FRANCE) < > you...@ai...> 写道: > > Hi, > > > > I am facing an issue while installing Jython Version 2.2.1. > > After double clicking on *jython_installer-2.2.1.jar*, and following the > different steps, when I get to the last step the bar doesn’t progress and > stay fixed at 0% (picture below): > > > > > > Can you please inform me if there are any perquisites to install Jython? > > If not, do you have an idea why the install doesn’t finish? > > > > Thanks in advance for your feedback, > > > > Regards, > > Yousra > > > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately > and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness > of this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately > and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness > of this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately > and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness > of this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > |
From: Adam B. <ada...@gm...> - 2019-01-09 12:00:35
|
Hi Yousra Can you try running the console installer and share what you see? java -jar jython-installer-2.7.0.jar --console https://wiki.python.org/jython/InstallationInstructions OS and Java versions would also be helpful. Cheers Adam On Wed, 9 Jan 2019 at 00:20, MKHAKH, Yousra (AUSY FRANCE) < you...@ai...> wrote: > Hi Adam, > > > > I need this version for a specific use at work. > > I am facing the same issue with the latest version 2.7.1 > > > > Yousra > > > > *De :* Adam Burke [mailto:ada...@gm...] > *Envoyé :* mardi 8 janvier 2019 14:04 > *À :* MKHAKH, Yousra (AUSY FRANCE) > *Cc :* jyt...@li... > *Objet :* Re: [Jython-users] Installation Jython 2.2.1 > > > > Hi Yousra > > > > Is there a specific reason you are installing 2.2 rather than 2.7.1 > (latest stable)? > > Cheers > > Adam > > > 在 2019年1月8日,下午10:46,MKHAKH, Yousra (AUSY FRANCE) < > you...@ai...> 写道: > > Hi, > > > > I am facing an issue while installing Jython Version 2.2.1. > > After double clicking on *jython_installer-2.2.1.jar*, and following the > different steps, when I get to the last step the bar doesn’t progress and > stay fixed at 0% (picture below): > > > > > > Can you please inform me if there are any perquisites to install Jython? > > If not, do you have an idea why the install doesn’t finish? > > > > Thanks in advance for your feedback, > > > > Regards, > > Yousra > > > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately > and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness > of this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > The information in this e-mail is confidential. The contents may not be > disclosed or used by anyone other than the addressee. Access to this e-mail > by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately > and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness > of this e-mail as it has been sent over public networks. If you have any > concerns over the content of this message or its Accuracy or Integrity, > please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus > scanning software but you should take whatever measures you deem to be > appropriate to ensure that this message and any attachments are virus free. > |
From: Adam B. <ada...@gm...> - 2019-01-08 13:04:39
|
Hi Yousra Is there a specific reason you are installing 2.2 rather than 2.7.1 (latest stable)? Cheers Adam > 在 2019年1月8日,下午10:46,MKHAKH, Yousra (AUSY FRANCE) <you...@ai...> 写道: > > Hi, > > I am facing an issue while installing Jython Version 2.2.1. > After double clicking on jython_installer-2.2.1.jar, and following the different steps, when I get to the last step the bar doesn’t progress and stay fixed at 0% (picture below): > > > > Can you please inform me if there are any perquisites to install Jython? > If not, do you have an idea why the install doesn’t finish? > > Thanks in advance for your feedback, > > Regards, > Yousra > > The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised. > If you are not the intended recipient, please notify Airbus immediately and delete this e-mail. > Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately. > All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free. > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: MKHAKH, Y. (A. FRANCE) <you...@ai...> - 2019-01-08 12:59:16
|
Hi, I am facing an issue while installing Jython Version 2.2.1. After double clicking on jython_installer-2.2.1.jar, and following the different steps, when I get to the last step the bar doesn't progress and stay fixed at 0% (picture below): [cid:image002.jpg@01D4A758.90F960D0] Can you please inform me if there are any perquisites to install Jython? If not, do you have an idea why the install doesn't finish? Thanks in advance for your feedback, Regards, Yousra The information in this e-mail is confidential. The contents may not be disclosed or used by anyone other than the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, please notify Airbus immediately and delete this e-mail. Airbus cannot accept any responsibility for the accuracy or completeness of this e-mail as it has been sent over public networks. If you have any concerns over the content of this message or its Accuracy or Integrity, please contact Airbus immediately. All outgoing e-mails from Airbus are checked using regularly updated virus scanning software but you should take whatever measures you deem to be appropriate to ensure that this message and any attachments are virus free. |
From: <jem...@fr...> - 2018-12-13 21:41:05
|
PythonInterpreter interp = new PythonInterpreter(....); interp.getSystemState().path_hooks.insert(0, yourPathHookObject); On Thu, 13 Dec 2018 22:10:55 +0100, Liam Coughlin <lsc...@gm...> wrote: > Thanks for the pointers, it gives me direction. > Second question though -- how do I register it with the system, uh... > outside the system. The documentation seems to indicate that you > register the hook in the script that then imports things, where in, i > want to setup how imports are down external to the scripting context and > lock it down. > Any suggestions? > Thanks-L > On Thu, Dec 13, 2018 at 7:10 PM wrote: > I havent done this, but heres how Id go about it. Use JavaImporter or > zipimporter as models to implement your own path_hook that you would add > to > sys.path_hooks. Implement find_module and load_module, and most > importantly get_data. The import mechanism prefers loading byte code > to > source code, so you should be able to store your compiled code instead > of > your source. I dont think the details you need to do this are > documented > anywhere, so youll need to read some of the Jython source. > org.python.core.imp, org.python.core.util.importer, > org..python.core.JavaImporter, org.python.modules.zipimport.*. Turn on > verbose import printout. > > On Thu, 13 Dec 2018 13:26:54 +0100, Liam Coughlin > wrote: > > ---------- Forwarded message --------- > > From: LIAM COUGHLIN > > Date: Wed, Dec 12, 2018 at 11:57 PM > > Subject: Re: [Jython-users] embedding jython > > To: > > > > It got me a good chunk of where I needed to go. I can effectively > > manage access to java Classes, and return bytecodefiddled classes that > > deny access to certain methods etc. so this got me 90% of the way > there. > > > > Now Im left with 2 issues relating to the fact that my scripts are > stored > > in a persistence tier and I would much rather _not_ jump through hoops > > echoing things to the local filesystem. The first issue is that I > would > > like to not be constantly recompiling my scripts when a JVM starts > up. > > There seems to be a way for me to hook into the compilation chain > capture > > the bytecode and restart the compilation chain from Py.makeClass() > > somewhere. It will be hacky, but it will be doable. > > The second issue is a little more head scratchy. I read through the > > jython book, cp. 8, Advanced Import Manipulation / Import Hooks. It > > seems you can manipulate the import system quite a bit, but there > doesnt > > seem to be a default way add a custom resource resolver or whatever so > > that I can pull my scripts from memory to be imported rather then off > the > > filesystem somewhere. > > I feel like I can probably attach this functionality into my custom > class > > loader, but I also feel like I might be missing something here, so I > > thought I would ask. > > Cheers-L > > > > On Tue, Dec 11, 2018 at 5:50 PM wrote: > > What I have done to limit which Java classes Jython code can access is > to > > set the classloader that jython uses: > > > > PySystemState.initialize(properties,postProps, > > new String[]{""}, > > getClassLoaderForJython()); > > > > Maybe this can help you, but its probably not as secure as you need. > It > > isnt as fine grained as a running with a custom SecurityManager. I > > dont > > see in the Jython source any opportunity to run with a > SecurityManager > > other than the system-wide one. > > > > On Tue, 11 Dec 2018 13:28:57 +0100, Liam Coughlin > > wrote: > > > Hello folks, > > > Maybe its just that my google skills are failing me, but Im having > > > trouble finding guidance for my use case embedding jython. > > > Essentially, I would like to use jython as an embedded scripting > > language > > > within my application. That said, my application has fairly > strict > > > security and privacy constraints ( think HIPAA and PCI ) and the > > scripts > > > will be provided by end-users of a multi-tenant application. To > that > > > end I would like to be able to impose security constraints on what > > java > > > classes jython scripts can import, and what methods of java > classes > > > jython scripts can call ( depending on caller context, or user > idenity > > > etc. ) > > > In another world, I modified groovys runtime MetaClassHandle to > inject > > > security checks into every pass through the MOP. This allowed me > to > > > save compiled groovy code, and then just instantiate the compiled > > groovy > > > code and execute it. > > > It seems like I could do this with jythons PyAdapter class or > > something > > > like that, or perhaps by overriding the classloader that is passed > in > > to > > > the systemstate when you instantiate an interpreter. Does this > sound > > > like im on the right course? > > > > > > Ideally, I would like to compile my python scripts load them as > > classes > > > and have my security checks inserted/executed at runtime. I > would > > like > > > to be able pre-compile things, and save the bytecode rather then > > having > > > to compile at system start time, or compile on demand, but beggars > > cant > > > really be choosers here -- Im more interested in whats possible > then > > > whats ideal at this point. > > > > > > In any case I cant seem to find a definitive guide on how to > control > > > exposure of java elements to jython - everything seems to be > geared > > > towards exposing jython objects to java which is the reverse of my > use > > > case. > > > Any advice, links or any help at all really would be greatly > > appreciated. > > > Thanks-L > > > > > > > > Links: > > ------ > > [1] mailto:lsc...@gm... [3] > > [2] mailto:jem...@fr... [4] > > [3] mailto:jem...@fr... [5] > > [4] mailto:lsc...@gm... [6] > > > Links: > ------ > [1] mailto:jem...@fr... > [2] mailto:lsc...@gm... > [3] mailto:lsc...@gm... > [4] mailto:jem...@fr... > [5] mailto:jem...@fr... > [6] mailto:lsc...@gm... |
From: Liam C. <lsc...@gm...> - 2018-12-13 21:11:39
|
Thanks for the pointers, it gives me direction. Second question though -- how do I register it with the system, uh... outside the system. The documentation seems to indicate that you register the hook in the script that then imports things, where in, i want to setup how imports are down external to the scripting context and lock it down. Any suggestions? Thanks -L On Thu, Dec 13, 2018 at 7:10 PM <jem...@fr...> wrote: > I haven't done this, but here's how I'd go about it. Use JavaImporter or > zipimporter as models to implement your own path_hook that you would add to > sys.path_hooks. Implement find_module and load_module, and most > importantly get_data. The import mechanism prefers loading byte code to > source code, so you should be able to store your compiled code instead of > your source. I don't think the details you need to do this are documented > anywhere, so you'll need to read some of the Jython source. > org.python.core.imp, org.python.core.util.importer, > org..python.core.JavaImporter, org.python.modules.zipimport.*. Turn on > verbose import printout. > > On Thu, 13 Dec 2018 13:26:54 +0100, Liam Coughlin <lsc...@gm...> > wrote: > > ---------- Forwarded message --------- > > From: LIAM COUGHLIN > > Date: Wed, Dec 12, 2018 at 11:57 PM > > Subject: Re: [Jython-users] embedding jython > > To: > > > > It got me a good chunk of where I needed to go. I can effectively > > manage access to java Classes, and return bytecodefiddled classes that > > deny access to certain methods etc. so this got me 90% of the way there. > > > > Now Im left with 2 issues relating to the fact that my scripts are > stored > > in a persistence tier and I would much rather _not_ jump through hoops > > echoing things to the local filesystem. The first issue is that I would > > like to not be constantly recompiling my scripts when a JVM starts up. > > There seems to be a way for me to hook into the compilation chain > capture > > the bytecode and restart the compilation chain from Py.makeClass() > > somewhere. It will be hacky, but it will be doable. > > The second issue is a little more head scratchy. I read through the > > jython book, cp. 8, Advanced Import Manipulation / Import Hooks. It > > seems you can manipulate the import system quite a bit, but there doesnt > > seem to be a default way add a custom resource resolver or whatever so > > that I can pull my scripts from memory to be imported rather then off > the > > filesystem somewhere. > > I feel like I can probably attach this functionality into my custom > class > > loader, but I also feel like I might be missing something here, so I > > thought I would ask. > > Cheers-L > > > > On Tue, Dec 11, 2018 at 5:50 PM wrote: > > What I have done to limit which Java classes Jython code can access is > to > > set the classloader that jython uses: > > > > PySystemState.initialize(properties,postProps, > > new String[]{""}, > > getClassLoaderForJython()); > > > > Maybe this can help you, but its probably not as secure as you need. It > > isnt as fine grained as a running with a custom SecurityManager. I > > dont > > see in the Jython source any opportunity to run with a SecurityManager > > other than the system-wide one. > > > > On Tue, 11 Dec 2018 13:28:57 +0100, Liam Coughlin > > wrote: > > > Hello folks, > > > Maybe its just that my google skills are failing me, but Im having > > > trouble finding guidance for my use case embedding jython. > > > Essentially, I would like to use jython as an embedded scripting > > language > > > within my application. That said, my application has fairly strict > > > security and privacy constraints ( think HIPAA and PCI ) and the > > scripts > > > will be provided by end-users of a multi-tenant application. To that > > > end I would like to be able to impose security constraints on what > > java > > > classes jython scripts can import, and what methods of java classes > > > jython scripts can call ( depending on caller context, or user > idenity > > > etc. ) > > > In another world, I modified groovys runtime MetaClassHandle to > inject > > > security checks into every pass through the MOP. This allowed me to > > > save compiled groovy code, and then just instantiate the compiled > > groovy > > > code and execute it. > > > It seems like I could do this with jythons PyAdapter class or > > something > > > like that, or perhaps by overriding the classloader that is passed in > > to > > > the systemstate when you instantiate an interpreter. Does this sound > > > like im on the right course? > > > > > > Ideally, I would like to compile my python scripts load them as > > classes > > > and have my security checks inserted/executed at runtime. I would > > like > > > to be able pre-compile things, and save the bytecode rather then > > having > > > to compile at system start time, or compile on demand, but beggars > > cant > > > really be choosers here -- Im more interested in whats possible then > > > whats ideal at this point. > > > > > > In any case I cant seem to find a definitive guide on how to control > > > exposure of java elements to jython - everything seems to be geared > > > towards exposing jython objects to java which is the reverse of my > use > > > case. > > > Any advice, links or any help at all really would be greatly > > appreciated. > > > Thanks-L > > > > > > > > Links: > > ------ > > [1] mailto:lsc...@gm... > > [2] mailto:jem...@fr... > > [3] mailto:jem...@fr... > > [4] mailto:lsc...@gm... > |
From: <jem...@fr...> - 2018-12-13 18:11:00
|
I haven't done this, but here's how I'd go about it. Use JavaImporter or zipimporter as models to implement your own path_hook that you would add to sys.path_hooks. Implement find_module and load_module, and most importantly get_data. The import mechanism prefers loading byte code to source code, so you should be able to store your compiled code instead of your source. I don't think the details you need to do this are documented anywhere, so you'll need to read some of the Jython source. org.python.core.imp, org.python.core.util.importer, org..python.core.JavaImporter, org.python.modules.zipimport.*. Turn on verbose import printout. On Thu, 13 Dec 2018 13:26:54 +0100, Liam Coughlin <lsc...@gm...> wrote: > ---------- Forwarded message --------- > From: LIAM COUGHLIN > Date: Wed, Dec 12, 2018 at 11:57 PM > Subject: Re: [Jython-users] embedding jython > To: > > It got me a good chunk of where I needed to go. I can effectively > manage access to java Classes, and return bytecodefiddled classes that > deny access to certain methods etc. so this got me 90% of the way there. > > Now Im left with 2 issues relating to the fact that my scripts are stored > in a persistence tier and I would much rather _not_ jump through hoops > echoing things to the local filesystem. The first issue is that I would > like to not be constantly recompiling my scripts when a JVM starts up. > There seems to be a way for me to hook into the compilation chain capture > the bytecode and restart the compilation chain from Py.makeClass() > somewhere. It will be hacky, but it will be doable. > The second issue is a little more head scratchy. I read through the > jython book, cp. 8, Advanced Import Manipulation / Import Hooks. It > seems you can manipulate the import system quite a bit, but there doesnt > seem to be a default way add a custom resource resolver or whatever so > that I can pull my scripts from memory to be imported rather then off the > filesystem somewhere. > I feel like I can probably attach this functionality into my custom class > loader, but I also feel like I might be missing something here, so I > thought I would ask. > Cheers-L > > On Tue, Dec 11, 2018 at 5:50 PM wrote: > What I have done to limit which Java classes Jython code can access is to > set the classloader that jython uses: > > PySystemState.initialize(properties,postProps, > new String[]{""}, > getClassLoaderForJython()); > > Maybe this can help you, but its probably not as secure as you need. It > isnt as fine grained as a running with a custom SecurityManager. I > dont > see in the Jython source any opportunity to run with a SecurityManager > other than the system-wide one. > > On Tue, 11 Dec 2018 13:28:57 +0100, Liam Coughlin > wrote: > > Hello folks, > > Maybe its just that my google skills are failing me, but Im having > > trouble finding guidance for my use case embedding jython. > > Essentially, I would like to use jython as an embedded scripting > language > > within my application. That said, my application has fairly strict > > security and privacy constraints ( think HIPAA and PCI ) and the > scripts > > will be provided by end-users of a multi-tenant application. To that > > end I would like to be able to impose security constraints on what > java > > classes jython scripts can import, and what methods of java classes > > jython scripts can call ( depending on caller context, or user idenity > > etc. ) > > In another world, I modified groovys runtime MetaClassHandle to inject > > security checks into every pass through the MOP. This allowed me to > > save compiled groovy code, and then just instantiate the compiled > groovy > > code and execute it. > > It seems like I could do this with jythons PyAdapter class or > something > > like that, or perhaps by overriding the classloader that is passed in > to > > the systemstate when you instantiate an interpreter. Does this sound > > like im on the right course? > > > > Ideally, I would like to compile my python scripts load them as > classes > > and have my security checks inserted/executed at runtime. I would > like > > to be able pre-compile things, and save the bytecode rather then > having > > to compile at system start time, or compile on demand, but beggars > cant > > really be choosers here -- Im more interested in whats possible then > > whats ideal at this point. > > > > In any case I cant seem to find a definitive guide on how to control > > exposure of java elements to jython - everything seems to be geared > > towards exposing jython objects to java which is the reverse of my use > > case. > > Any advice, links or any help at all really would be greatly > appreciated. > > Thanks-L > > > > Links: > ------ > [1] mailto:lsc...@gm... > [2] mailto:jem...@fr... > [3] mailto:jem...@fr... > [4] mailto:lsc...@gm... |
From: Liam C. <lsc...@gm...> - 2018-12-13 12:27:50
|
---------- Forwarded message --------- From: Liam Coughlin <lsc...@gm...> Date: Wed, Dec 12, 2018 at 11:57 PM Subject: Re: [Jython-users] embedding jython To: <jem...@fr...> It got me a good chunk of where I needed to go. I can effectively manage access to java Classes, and return bytecodefiddled classes that deny access to certain methods etc. so this got me 90% of the way there. Now I'm left with 2 issues relating to the fact that my scripts are stored in a persistence tier and I would much rather _not_ jump through hoops echoing things to the local filesystem. The first issue is that I would like to not be constantly recompiling my scripts when a JVM starts up. There seems to be a way for me to hook into the compilation chain capture the bytecode and restart the compilation chain from Py.makeClass() somewhere. It will be hacky, but it will be doable. The second issue is a little more head scratchy. I read through the jython book, cp. 8, Advanced Import Manipulation / Import Hooks. It seems you can manipulate the import system quite a bit, but there doesn't seem to be a default way add a custom resource resolver or whatever so that I can pull my scripts from memory to be imported rather then off the filesystem somewhere. I feel like I can probably attach this functionality into my custom class loader, but I also feel like I might be missing something here, so I thought I would ask. Cheers -L On Tue, Dec 11, 2018 at 5:50 PM <jem...@fr...> wrote: > What I have done to limit which Java classes Jython code can access is to > set the classloader that jython uses: > > PySystemState.initialize(properties,postProps, > new String[]{""}, getClassLoaderForJython()); > > > Maybe this can help you, but it's probably not as secure as you need. It > isn't as fine grained as a running with a custom SecurityManager. I don't > see in the Jython source any opportunity to run with a SecurityManager > other than the system-wide one. > > > > On Tue, 11 Dec 2018 13:28:57 +0100, Liam Coughlin <lsc...@gm...> > wrote: > > Hello folks, > > Maybe its just that my google skills are failing me, but Im having > > trouble finding guidance for my use case embedding jython. > > Essentially, I would like to use jython as an embedded scripting > language > > within my application. That said, my application has fairly strict > > security and privacy constraints ( think HIPAA and PCI ) and the scripts > > will be provided by end-users of a multi-tenant application. To that > > end I would like to be able to impose security constraints on what java > > classes jython scripts can import, and what methods of java classes > > jython scripts can call ( depending on caller context, or user idenity > > etc. ) > > In another world, I modified groovys runtime MetaClassHandle to inject > > security checks into every pass through the MOP. This allowed me to > > save compiled groovy code, and then just instantiate the compiled groovy > > code and execute it. > > It seems like I could do this with jythons PyAdapter class or something > > like that, or perhaps by overriding the classloader that is passed in to > > the systemstate when you instantiate an interpreter. Does this sound > > like im on the right course? > > > > Ideally, I would like to compile my python scripts load them as classes > > and have my security checks inserted/executed at runtime. I would like > > to be able pre-compile things, and save the bytecode rather then having > > to compile at system start time, or compile on demand, but beggars cant > > really be choosers here -- Im more interested in whats possible then > > whats ideal at this point. > > > > In any case I cant seem to find a definitive guide on how to control > > exposure of java elements to jython - everything seems to be geared > > towards exposing jython objects to java which is the reverse of my use > > case. > > Any advice, links or any help at all really would be greatly > appreciated. > > Thanks-L > > |
From: <jem...@fr...> - 2018-12-11 16:50:41
|
What I have done to limit which Java classes Jython code can access is to set the classloader that jython uses: PySystemState.initialize(properties,postProps, new String[]{""}, getClassLoaderForJython()); Maybe this can help you, but it's probably not as secure as you need. It isn't as fine grained as a running with a custom SecurityManager. I don't see in the Jython source any opportunity to run with a SecurityManager other than the system-wide one. On Tue, 11 Dec 2018 13:28:57 +0100, Liam Coughlin <lsc...@gm...> wrote: > Hello folks, > Maybe its just that my google skills are failing me, but Im having > trouble finding guidance for my use case embedding jython. > Essentially, I would like to use jython as an embedded scripting language > within my application. That said, my application has fairly strict > security and privacy constraints ( think HIPAA and PCI ) and the scripts > will be provided by end-users of a multi-tenant application. To that > end I would like to be able to impose security constraints on what java > classes jython scripts can import, and what methods of java classes > jython scripts can call ( depending on caller context, or user idenity > etc. ) > In another world, I modified groovys runtime MetaClassHandle to inject > security checks into every pass through the MOP. This allowed me to > save compiled groovy code, and then just instantiate the compiled groovy > code and execute it. > It seems like I could do this with jythons PyAdapter class or something > like that, or perhaps by overriding the classloader that is passed in to > the systemstate when you instantiate an interpreter. Does this sound > like im on the right course? > > Ideally, I would like to compile my python scripts load them as classes > and have my security checks inserted/executed at runtime. I would like > to be able pre-compile things, and save the bytecode rather then having > to compile at system start time, or compile on demand, but beggars cant > really be choosers here -- Im more interested in whats possible then > whats ideal at this point. > > In any case I cant seem to find a definitive guide on how to control > exposure of java elements to jython - everything seems to be geared > towards exposing jython objects to java which is the reverse of my use > case. > Any advice, links or any help at all really would be greatly appreciated. > Thanks-L |
From: Liam C. <lsc...@gm...> - 2018-12-11 12:29:55
|
Hello folks, Maybe it's just that my google skills are failing me, but I'm having trouble finding guidance for my use case embedding jython. Essentially, I would like to use jython as an embedded scripting language within my application. That said, my application has fairly strict security and privacy constraints ( think HIPAA and PCI ) and the scripts will be provided by end-users of a multi-tenant application. To that end I would like to be able to impose security constraints on what java classes jython scripts can import, and what methods of java classes jython scripts can call ( depending on caller context, or user idenity etc. ) In another world, I modified groovy's runtime MetaClassHandle to inject security checks into every pass through the MOP. This allowed me to save compiled groovy code, and then just instantiate the compiled groovy code and execute it. It seems like I could do this with jython's PyAdapter class or something like that, or perhaps by overriding the classloader that is passed in to the systemstate when you instantiate an interpreter. Does this sound like i'm on the right course? Ideally, I would like to compile my python scripts load them as classes and have my security checks inserted/executed at runtime. I would like to be able pre-compile things, and save the bytecode rather then having to compile at system start time, or compile on demand, but beggars can't really be choosers here -- I'm more interested in what's possible then what's ideal at this point. In any case I can't seem to find a definitive guide on how to control exposure of java elements to jython - everything seems to be geared towards exposing jython objects to java which is the reverse of my use case. Any advice, links or any help at all really would be greatly appreciated. Thanks -L |
From: <jem...@fr...> - 2018-11-13 17:20:56
|
To invoke your Jython program from C++ you have two options: 1) Easy - Invoke jython as a separater process: for example, system("jython yourpythoncode.py inputfilename outputfilename"); 2) Hard - Use JNI to embed a Java runtime in your C++ program, instantiate the runtime, tell it to execute the Jython interpreter with your files. On Mon, 12 Nov 2018 14:15:08 +0530, Balanand Jha <bal...@gm...> wrote: > Hello everyone, > I created a little project in jython using one Java library (owlapi5.1) > and one python library (dendropy) along with other built in jython > functions for string and file i/o operations. The program is working fine > on itself from within the eclipse environment. Now I want to > integrate/call (or whatever it is called technically) from my main C++ > project which I am developing using visual studio IDE (.NET framework is > _NOT_ involved). What my jython program does is to take a simple text > file as input and converts its format and saves it as another text file. > I want to generate that input file from my C++ project, call jython > program and pass this file to it (directly or though file system), and > let jython program save the output file to the disc. > I am completely new to the jython concept and do not have a slightest > idea of how this can be done. Any help would be greatly appreciated. > Thanks in advance. > Bala |
From: Jeff M. <jef...@za...> - 2018-11-12 15:13:05
|
Sounds like you're just trying to use good old sys *argv (argument list) *and *argc (argument count)*.. I'd assume they work in jython much like python, so you could iterate across argv using a for-loop say, or use an argument handling library to make it easier to have fancy argument lists. But just picking up the first string (if present) with "import sys" and "sys.argv [ 0 ]" might do you.. jeff On Mon, Nov 12, 2018 at 3:47 AM Balanand Jha <bal...@gm...> wrote: > Hello everyone, > > I created a little project in jython using one Java library (owlapi5.1) > and one python library (dendropy) along with other built in jython > functions for string and file i/o operations. The program is working fine > on itself from within the eclipse environment. Now I want to integrate/call > (or whatever it is called technically) from my main C++ project which I am > developing using visual studio IDE (.NET framework is *not* involved). > What my jython program does is to take a simple text file as input and > converts it's format and saves it as another text file. I want to generate > that input file from my C++ project, call jython program and pass this file > to it (directly or though file system), and let jython program save the > output file to the disc. > > I am completely new to the jython concept and do not have a slightest idea > of how this can be done. Any help would be greatly appreciated. > > Thanks in advance. > > Bala > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Balanand J. <bal...@gm...> - 2018-11-12 08:45:37
|
Hello everyone, I created a little project in jython using one Java library (owlapi5.1) and one python library (dendropy) along with other built in jython functions for string and file i/o operations. The program is working fine on itself from within the eclipse environment. Now I want to integrate/call (or whatever it is called technically) from my main C++ project which I am developing using visual studio IDE (.NET framework is *not* involved). What my jython program does is to take a simple text file as input and converts it's format and saves it as another text file. I want to generate that input file from my C++ project, call jython program and pass this file to it (directly or though file system), and let jython program save the output file to the disc. I am completely new to the jython concept and do not have a slightest idea of how this can be done. Any help would be greatly appreciated. Thanks in advance. Bala |
From: Fabio Z. <fa...@gm...> - 2018-11-09 14:09:41
|
PyDev 7.0.3 Release Highlights ------------------------------- * **Mypy** * PyDev can now use Mypy when doing code analysis. * **Black Formatter** * PyDev can now use black as the code formatting engine. * **Virtual environments** * It's now possible to use pipenv for managing virtual environments. * It's possible to manage virtual environments from the editor. * Ctrl+2, pip <command> * Ctrl+2, pipenv <command> * Ctrl+2, conda <command> * **Debugger** * Should be **much** faster for those on Python 3.6 onwards with cython extensions (using frame evaluation). * The Python 3.7 grammar is now available as an option (even though it's the same as 3.6). * Removed support for using the Python 2.4 grammar. * The 2to3 integration shows a better dialog. * It's possible to autogenerate docstring parameters using the Google Code format (patch by ghbcode). About PyDev --------------------------- PyDev is an open-source Python IDE on top of Eclipse for Python, Jython and IronPython development, now also available for Python on Visual Studio Code. It comes with goodies such as code completion, syntax highlighting, syntax analysis, code analysis, refactor, debug, interactive console, etc. It is also available as a standalone through LiClipse with goodies such as multiple cursors, theming and support for many other languages, such as Django Templates, Jinja2, Html, JavaScript, etc. Links: PyDev: http://pydev.org PyDev Blog: http://pydev.blogspot.com PyDev on VSCode: http://pydev.org/vscode LiClipse: http://www.liclipse.com PyVmMonitor - Python Profiler: http://www.pyvmmonitor.com/ Cheers, Fabio Zadrozny |
From: <fwi...@gm...> - 2018-10-30 21:07:16
|
Hi Chris, We are working on switching to a github page for the website, but something went wrong with the transition. It's reverted but you might still see the broken "new" page until your DNS catches up to the reversion. On Tue, Oct 30, 2018 at 2:03 PM Chris Clark <Chr...@ac...> wrote: > > It looks like its http://www.jython.org/ ttempting to go to a GitHub page(s). > > > > bugs.jython.org is working fine > > > > Chris > > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Chris C. <Chr...@ac...> - 2018-10-30 21:03:11
|
It looks like its http://www.jython.org/ ttempting to go to a GitHub page(s). bugs.jython.org is working fine Chris |
From: Jeff A. <ja...@fa...> - 2018-10-13 16:56:39
|
The difficult step is to Java 9, which does not smoothly run Jython because of changes under Project Jigsaw. We consider this essential for 2.7.2, but a few regressions are still to be dealt with. On a quick check, I only get the same failures for Java 11 that I get for Java 9, so although aiming for 9 I'd be surprised to find 2.7.2 will not run on 11. Now you will ask for dates and I will find it difficult to give any worth the ink. Jeff Allen On 12/10/2018 03:52, Adam Burke wrote: > I should also have noted that 2.7.2 is actually 2.7.2a1, an alpha > release. It's what you get if you take the current trunk of > development. 2.7.1 is the last official release. > > Adam > > On Thu, 11 Oct 2018 at 20:34, Adam Burke <ada...@gm... > <mailto:ada...@gm...>> wrote: > > Hi Roland > > The Jython site has a number of problems and out of date parts, > unfortunately including the downloads page at time of writing. It > is being actively fixed though, see > http://bugs.jython.org/issue2658 > > 2.7 on Java 11 sounds like a good idea to me, but I haven’t seen a > statement from the core devs on it yet (I am not one). > > Cheers > Adam > > 在 2018年10月10日,下午10:27,Houtman, Roland > <Rol...@nl... > <mailto:Rol...@nl...>> 写道: > >> Dear Jython team, >> >> Are there plans for getting Jython 2.7 ready for JDK 11? >> >> Also, why is >> >> jython.org/downloads.html <http://jython.org/downloads.html> >> stating the latest version is 2.7.0, >> >> while the >> >> Github https://github.com/jythontools/jython is stating 2.7.2 ? >> >> Kind regards, >> >> Roland >> > |
From: Adam B. <ada...@gm...> - 2018-10-12 02:53:09
|
I should also have noted that 2.7.2 is actually 2.7.2a1, an alpha release. It's what you get if you take the current trunk of development. 2.7.1 is the last official release. Adam On Thu, 11 Oct 2018 at 20:34, Adam Burke <ada...@gm...> wrote: > Hi Roland > > The Jython site has a number of problems and out of date parts, > unfortunately including the downloads page at time of writing. It is being > actively fixed though, see > http://bugs.jython.org/issue2658 > > 2.7 on Java 11 sounds like a good idea to me, but I haven’t seen a > statement from the core devs on it yet (I am not one). > > Cheers > Adam > > 在 2018年10月10日,下午10:27,Houtman, Roland <Rol...@nl...> 写道: > > Dear Jython team, > > > > Are there plans for getting Jython 2.7 ready for JDK 11? > > > > > > Also, why is > > jython.org/downloads.html stating the latest version is 2.7.0, > > while the > > Github https://github.com/jythontools/jython is stating 2.7.2 ? > > > > > > Kind regards, > > Roland > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > > |
From: Adam B. <ada...@gm...> - 2018-10-11 10:34:22
|
Hi Roland The Jython site has a number of problems and out of date parts, unfortunately including the downloads page at time of writing. It is being actively fixed though, see http://bugs.jython.org/issue2658 2.7 on Java 11 sounds like a good idea to me, but I haven’t seen a statement from the core devs on it yet (I am not one). Cheers Adam > 在 2018年10月10日,下午10:27,Houtman, Roland <Rol...@nl...> 写道: > > Dear Jython team, > > Are there plans for getting Jython 2.7 ready for JDK 11? > > > Also, why is > jython.org/downloads.html stating the latest version is 2.7.0, > while the > Github https://github.com/jythontools/jython is stating 2.7.2 ? > > > Kind regards, > Roland > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Houtman, R. <Rol...@nl...> - 2018-10-10 12:46:34
|
Dear Jython team, Are there plans for getting Jython 2.7 ready for JDK 11? Also, why is jython.org/downloads.html stating the latest version is 2.7.0, while the Github https://github.com/jythontools/jython is stating 2.7.2 ? Kind regards, Roland |
From: Jeff A. <ja...@fa...> - 2018-10-02 07:48:49
|
Java definitely needs a main(). But, I will admit that I didn't know (didn't remember) that Jython puts one in there! Here it is: PS nomain> javap '.\HelloWorld$py.class' Compiled from "C:\Users\Jeff\Documents\Jython\270\nomain\HelloWorld.py" public class HelloWorld$py extends org.python.core.PyFunctionTable implements org.python.core.PyRunnable { static HelloWorld$py self; static final org.python.core.PyCode f$0; public org.python.core.PyObject f$0(org.python.core.PyFrame, org.python.core.ThreadState); public HelloWorld$py(java.lang.String); public org.python.core.PyCode getMain(); public static void main(java.lang.String[]); public static org.python.core.CodeBootstrap getCodeBootstrap(); public org.python.core.PyObject call_function(int, org.python.core.PyFrame, org.python.core.ThreadState); } Thanks for asking the question. Jeff Allen On 02/10/2018 05:16, Ted Larson Freeman wrote: > Hi, Jeff. > > Another list member replied directly yesterday with this answer, which > solved my issue: > > java -cp /opt/jython2.7.0/jython.jar:. HelloWorld\$py > > I needed the full path to the jar as well as the ":." to include the > current working directory. > > And you're right that the classpath must come first. Several examples > I tried all worked, even just a single print statement. So it must not > be a requirement to have a main() in the Python script itself. > > Thanks for your analysis. > > Ted > > PS. I didn't realize until now that the message I referred to above > had not been cc'ed to this list. > |