You can subscribe to this list here.
| 2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(38) |
Nov
(98) |
Dec
(58) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2001 |
Jan
(114) |
Feb
(123) |
Mar
(96) |
Apr
(66) |
May
(84) |
Jun
(72) |
Jul
(128) |
Aug
(126) |
Sep
(82) |
Oct
(80) |
Nov
(148) |
Dec
(55) |
| 2002 |
Jan
(137) |
Feb
(85) |
Mar
(118) |
Apr
(67) |
May
(71) |
Jun
(28) |
Jul
(69) |
Aug
(48) |
Sep
(83) |
Oct
(79) |
Nov
(54) |
Dec
(32) |
| 2003 |
Jan
(44) |
Feb
(47) |
Mar
(59) |
Apr
(57) |
May
(43) |
Jun
(45) |
Jul
(44) |
Aug
(39) |
Sep
(27) |
Oct
(62) |
Nov
(17) |
Dec
(23) |
| 2004 |
Jan
(41) |
Feb
(51) |
Mar
(38) |
Apr
(30) |
May
(25) |
Jun
(12) |
Jul
(11) |
Aug
(27) |
Sep
(16) |
Oct
(56) |
Nov
(23) |
Dec
(29) |
| 2005 |
Jan
(75) |
Feb
(82) |
Mar
(50) |
Apr
(77) |
May
(19) |
Jun
(104) |
Jul
(47) |
Aug
(42) |
Sep
(28) |
Oct
(143) |
Nov
(62) |
Dec
(13) |
| 2006 |
Jan
(20) |
Feb
(10) |
Mar
(59) |
Apr
(45) |
May
(25) |
Jun
(129) |
Jul
(162) |
Aug
(91) |
Sep
(15) |
Oct
(39) |
Nov
(186) |
Dec
(191) |
| 2007 |
Jan
(134) |
Feb
(140) |
Mar
(106) |
Apr
(77) |
May
(92) |
Jun
(63) |
Jul
(233) |
Aug
(102) |
Sep
(119) |
Oct
(63) |
Nov
(68) |
Dec
(32) |
| 2008 |
Jan
(69) |
Feb
(91) |
Mar
(129) |
Apr
(44) |
May
(18) |
Jun
(53) |
Jul
(50) |
Aug
(25) |
Sep
(11) |
Oct
(28) |
Nov
(67) |
Dec
(36) |
| 2009 |
Jan
(20) |
Feb
(24) |
Mar
(66) |
Apr
(53) |
May
(48) |
Jun
(48) |
Jul
(59) |
Aug
(82) |
Sep
(49) |
Oct
(30) |
Nov
(16) |
Dec
(16) |
| 2010 |
Jan
(52) |
Feb
(25) |
Mar
(36) |
Apr
(34) |
May
(14) |
Jun
(15) |
Jul
(14) |
Aug
(16) |
Sep
(23) |
Oct
(6) |
Nov
(4) |
Dec
(5) |
| 2011 |
Jan
(4) |
Feb
(22) |
Mar
(45) |
Apr
(9) |
May
(8) |
Jun
(13) |
Jul
(12) |
Aug
(4) |
Sep
(6) |
Oct
(10) |
Nov
(21) |
Dec
(5) |
| 2012 |
Jan
(6) |
Feb
(9) |
Mar
(25) |
Apr
(6) |
May
(4) |
Jun
(23) |
Jul
(6) |
Aug
(18) |
Sep
(21) |
Oct
(34) |
Nov
(19) |
Dec
(25) |
| 2013 |
Jan
(8) |
Feb
(34) |
Mar
(35) |
Apr
(4) |
May
(11) |
Jun
(4) |
Jul
(7) |
Aug
(5) |
Sep
(20) |
Oct
(12) |
Nov
(11) |
Dec
(7) |
| 2014 |
Jan
(10) |
Feb
(18) |
Mar
(50) |
Apr
(26) |
May
(53) |
Jun
(21) |
Jul
(12) |
Aug
(39) |
Sep
(43) |
Oct
(26) |
Nov
(8) |
Dec
(6) |
| 2015 |
Jan
(18) |
Feb
(32) |
Mar
(31) |
Apr
(42) |
May
(38) |
Jun
(13) |
Jul
(6) |
Aug
(11) |
Sep
(29) |
Oct
(25) |
Nov
(10) |
Dec
(11) |
| 2016 |
Jan
(24) |
Feb
(12) |
Mar
(13) |
Apr
(15) |
May
(22) |
Jun
(8) |
Jul
(12) |
Aug
(25) |
Sep
(8) |
Oct
(6) |
Nov
(13) |
Dec
(7) |
| 2017 |
Jan
(6) |
Feb
(29) |
Mar
(32) |
Apr
(8) |
May
(82) |
Jun
(42) |
Jul
(20) |
Aug
(17) |
Sep
(27) |
Oct
(14) |
Nov
(22) |
Dec
(6) |
| 2018 |
Jan
(12) |
Feb
(9) |
Mar
(22) |
Apr
(19) |
May
(14) |
Jun
(9) |
Jul
(9) |
Aug
(22) |
Sep
(22) |
Oct
(12) |
Nov
(13) |
Dec
(8) |
| 2019 |
Jan
(22) |
Feb
(3) |
Mar
(30) |
Apr
(20) |
May
(20) |
Jun
(6) |
Jul
(15) |
Aug
(25) |
Sep
(11) |
Oct
(24) |
Nov
(11) |
Dec
(6) |
| 2020 |
Jan
(9) |
Feb
(12) |
Mar
(29) |
Apr
(10) |
May
(22) |
Jun
(11) |
Jul
(15) |
Aug
(5) |
Sep
(6) |
Oct
(7) |
Nov
(7) |
Dec
(13) |
| 2021 |
Jan
(21) |
Feb
(5) |
Mar
(5) |
Apr
(6) |
May
(10) |
Jun
(7) |
Jul
(6) |
Aug
(8) |
Sep
(5) |
Oct
(9) |
Nov
(5) |
Dec
(6) |
| 2022 |
Jan
(5) |
Feb
(4) |
Mar
(8) |
Apr
(6) |
May
(5) |
Jun
(5) |
Jul
(10) |
Aug
(6) |
Sep
(7) |
Oct
(4) |
Nov
(4) |
Dec
(6) |
| 2023 |
Jan
(5) |
Feb
(5) |
Mar
(6) |
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(7) |
Dec
(8) |
| 2024 |
Jan
(3) |
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(1) |
Jul
(1) |
Aug
(4) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
| 2025 |
Jan
|
Feb
(2) |
Mar
|
Apr
(1) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2026 |
Jan
|
Feb
(1) |
Mar
(2) |
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <mco...@sp...> - 2001-10-11 16:38:55
|
Hi Folks, We love Jython. We're trying to provide some functionality to our users that allows them to start a Jython interpreter, user our system (by instatiating a class), then quit. However, we need to have a cleanup method run when the interpreter exits. Is there a way to do this? THanks. matt |
|
From: Carlos Q. <car...@we...> - 2001-10-10 19:01:41
|
On Wednesday 10 October 2001 20:35, Wang, Lily wrote: Hi There is not select.py in jython, mainly because there is no way to implement it in pure java, not at least before jdk 1.4 You should check the page presenting the differences between jython and cpython page at http://www.jython.org/docs/differences.html Regards > Hi, > > I need to use some functions in telnetlib such as read_until() which needs > select.py but this file is not included in JPython 1.1 nor jython 2.0. I > tried to search for CPython to find this file as the instruction says but > didn't succeed. Could you please point me a link where I can get a copy of > select.py? Thanks. > > Regards, > Lily Wang > > > > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Wang, L. <LW...@ci...> - 2001-10-10 17:36:01
|
Hi, I need to use some functions in telnetlib such as read_until() which needs select.py but this file is not included in JPython 1.1 nor jython 2.0. I tried to search for CPython to find this file as the instruction says but didn't succeed. Could you please point me a link where I can get a copy of select.py? Thanks. Regards, Lily Wang |
|
From: <mai...@Pe...> - 2001-10-09 20:19:16
|
IAkNCgkNClBlcnNvbmFsREK0wiC79bfOv+4gsLPAziDB9r3EILnXIMGkuriw/LiuIL3DvbrF28DU tM+02S4NClBlcnNvbmFsREK/zSDH1LKyILv1t86/7iDBpLq4yK0gvLyw6LfOILOqvsawocH2IL7K wLi9w7DavcC0z7HuPwkNCgkNCiAJDQoNClRvLiBqeXRob24tZGV2ILTUsrINClBlcnNvbmFsREIu bmV0IMi4v/jAuLfOIMPKtOu53sC4vMy9wLTPtNkuDQoNCkZyb20uIMClsPy4rsDaICggbWFpbG1h c3RlciApICANCiAgX19fX18gIA0KDQogCQ0KDQoJvsiz58fPvLy/5C4guLizqiC6y7DUILXHvu4g ud2wqb3AtM+02S4NCgkNCgm6uyC758DMxq60wiDIv8CywPvAuLfOIMDavcXAxyDB9r3EsPogwaS6 uCwgwNq34bXpwLsgsPy4rsfPuOcgwMy3r8fRI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268b26 sKEgwaaw+LXHuOcgvK268b26tMIgsOi80yDIrrTrtcew7SDA1r3AtM+02S4NCgkNCgmwocDUwLog uau34cDUtM+02S4NCgkNCgnG7cH2sKEgsc3Hz7/NIMfUsrIgu/W3zr/uIMH2vcQswaS6uMiwtb/A uyDH0iC89iDA1rTCIMDbwLogwM6/rMDMILXJILz2IMDWseYgwfi9ycC4t84gudm287jnLCDH47b0 vvjAzCC6uw0KuN7Az8C7ILq4s721pSC068fPv6kgwcu82726t7EguLbAvcC7ILHdx9IgvPYgvvi9 wLTPtNkuDQoJvtXAuLfOIMPfsKG1x7TCILytuvG9ur/NILXut8+1x7TCIL+pt68gv+y89sfRIMDa t+G16b+hILD8x9EgwaS6uLimIMGmsPjH2CC15bixIL+5waTA1LTPtNm4uCC4uMDPIMD6yPEgu+fA zMaut866zsXNDQq43sDPwLsgud7B9iC+yrHiuKYgv/jHz73DtMIgsOa/7CC+xrehwMcgvPa9xbDF us64piC757/rx8+9xyC89iDA1r3AtM+02S4NCgkNCgmwqLvnx9W0z7TZLg0KDQogPGh0dHA6Ly93 d3cuUGVyc29uYWxEQi5uZXQ+IAkNCgkNCgkNCgkNCiBQZXJzb25hbERCtMI/CQ0KIAkNCgkNCiAJ DQoJDQogsLPAzrXwuvEJLSDA2rfhwMcguriw/CwgsPjArywguMW4xbimIMCnx9EgsLPAzkRCIMGm sPgNCi0gsLPAzsDat+G9xywgsLPAzr7ZufwsILCzwM66z7i2xam3ziCxuLy6DQotILq4sPy/6yzI qMbkwMzB9iCw1L3DLMDat+Gw+MCvLMH2vcTDorDtv6G8rcDHIMbHuMW/68C4t84gyLC/6wkNCgkN CiCws8DOtfC68QktIL26xMnB2bevLCDAz7HiwOUsILjeuPDA5SwgVG8gRG8gTGlzdCwgsLPAzsHW vNK3zy4uLg0KLSCws8DOwaS6uLD8uK6/oSDHyr/kx9EguPC15yCws8DOvK268b26IMGmsPgNCi0g uPC15yC8rbrxvbrA2rfhtMIgtNm+58fPsNQgyLC/67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LmusKHAzLDFs6oguMW0z77GwMy9xSC60CANCioJwd+/5MfRIMDat+G4piC6uLD8x9i+ 3yDHz7TCILrQIA0KKgnA2r3FwMcgwfa9xMDMs6ogwaS6uCwgwNq34bfOILjFv/kgvPbAzcC7IL/D uK6w7SC9zcC4vcUgutAgDQoqCcfKv+TH0SDB9r3EwMyzqiDBpLq4uKYgw6O+xiDApbytx87AuyDA 2sHWIMfPvcO0wiC60CANCioJxq/BpMfRILrQvt+/oSC068fPv6kgwPy5rrChwMcgtbW/8sDMIMfK v+THz73FILrQIA0KKgnEo7G4s6ogtb+34bXpsPogwNq34bimILGzyK8ssPjAr8fSIMfKv+SwoSDA 1sC4vcUgutAgDQoqCcioxuTAzMH2uKYgsK6w7SDA1rDFs6oguLi16bfBsO0gx8+9w7TCILrQIA0K KgnIqMbkwMzB9rimILCusO0gwNbB9ri4ILD8uK7Hz7TCILWlv6Egvu63wb/ywLsgtMCzorDFs6og sc3C+sC4vcUgutAgDQoqCcSjsbgsILW/w6IsILW/t+G17rD6IL/suK64uMDHILjwwNPAuyC4uLXp sO0gvc3AuL3FILrQtekgDQoqCb7utrIgwdbBpr+hILTrx8+/qSC/qbevILvntve16bD6wMcguPDA 08DMIMfKv+THz73FILrQtekgDQoqCcDPseIsuN648MDlLL26xMnB2bevte4gv6m3ryCws8DOvK26 8b26uKYgwMy/68fPsO0gvc3AuL3FILrQIA0KKgnG7biux8+w7SCwrbfCx9EgwPzA2r/sxu3AzCDH yr/kx8+9xSC60CANCioJsKHBtyzEo7G4LLW/t+G/zcDHILvnwfjAuyDA/MDavtm5/MC4t84gwabA 28fPsO0gvc3AuL3FILrQIA0KKgm5q775uri02bW1IMO8sOjA+8DMuOcgyL+w+sD7wM4gwfa9xLDm wO+3wsC7ILCuw9+w7SC9zcC4vcUgutANCg0KDQoJDQrAzLexILrQtenAuiC+7rytILChwNTHz7y8 v+QuILv1t86/7iC8rbrxvbq4piC0wLOivccgvPYgwNa9wLTPtNkuIAkNCgkNCiC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ZmF1bHQuYXNwP2RpcmVjdD1hc2suaHRtPg0KfCC89r3FsMW6zg0KPGh0dHA6Ly93d3cu cGVyc29uYWxkYi5uZXQvbGliL3JlamVjdF9tYWlsLmFzcD9hZGRyPWp5dGhvbi1kZXZAbGlzdHMu c291DQpyY2Vmb3JnZS5uZXQ+ICAJDQo= |
|
From: Carlos Q. <car...@we...> - 2001-10-08 16:54:29
|
On Monday 08 October 2001 17:58, Brian Lawless (EEI) wrote:
I think your problem has something to do with the indentation. Possibly the
inputLine() is reding mixed tabs and spaces. I'm not completely sure, I
should see it.
Why don't you run the script directly with the execfile() function in
PythonInterpreter? that is probably a lot easier
> Hi,
> I sent the following email to you on 2nd Febuary 2001. I have not
> got an answer back.
>
> regards/Brian
> -------------------------------------------------------
> I'm using Jython from a PC and Window NT. I do not run Jython from the
> command Shell I'm importing the following classes in order to run Jython
> scripts:
>
> PythonInterpreter;
> InteractiveInterpreter;
> InteractiveConsole
>
> I'm reading in the Jython script, it is read line by line using the
> following:
>
> while ((inputLine = in.readLine()) != null){
> taskText += (inputLine + "\n");
>
>
> The Jython file is executed, line by line via the interpreter using the
> method runsource().
>
> I'm experiencing a problem with IF and WHILE statements. The interpreter
> does not like the symbol "\n". Obviously there is other symbols to show
> that a jython line is associated with the IF statement. Also there is
> probably a symbol which indicates that if/while statement has ended. Can
> you tell me the end of line symbols that are associated with IF/While
> statements.
>
> Here are two scripts I ran with my Java program, the output is shown below.
> I also ran the following 2 scripts with Jython on the command shell and
> they worked ok:
>
> class example:
> x = int(1)
> y = int(1)
> while x < 5 :
> x = x + 1
> print x
>
> output = 2 but should be 5.
> class example:
> x = int(1)
> y = int(2)
> if x == y :
> print 'X and Y have the same value'
> else :
> print 'X and Y are different'
>
> output = X and Y have the same value
> X and Y are different
> Also the following syntax error is outputted.
> Traceback (innermost last):
> (no code object) at line 0
> File "<input>", line 1
> else :
> ^
> SyntaxError: invalid syntax
>
> thanks/Brian
>
>
>
> _______________________________________________
> Jython-dev mailing list
> Jyt...@li...
> https://lists.sourceforge.net/lists/listinfo/jython-dev
|
|
From: Brian L. (EEI) <Bri...@ee...> - 2001-10-08 14:58:27
|
Hi,
I sent the following email to you on 2nd Febuary 2001. I have not
got an answer back.
regards/Brian
-------------------------------------------------------
I'm using Jython from a PC and Window NT. I do not run Jython from the command Shell I'm importing the following classes in order to run Jython scripts:
PythonInterpreter;
InteractiveInterpreter;
InteractiveConsole
I'm reading in the Jython script, it is read line by line using the following:
:
while ((inputLine = in.readLine()) != null){
taskText += (inputLine + "\n");
:
The Jython file is executed, line by line via the interpreter using the method runsource().
I'm experiencing a problem with IF and WHILE statements. The interpreter does not like the symbol "\n". Obviously there is other symbols to show that a jython line is associated with the IF statement. Also there is probably a symbol which indicates that if/while statement has ended. Can you tell me the end of line symbols that are associated with IF/While statements.
Here are two scripts I ran with my Java program, the output is shown below. I also ran the following 2 scripts with Jython on the command shell and they worked ok:
class example:
x = int(1)
y = int(1)
while x < 5 :
x = x + 1
print x
output = 2 but should be 5.
class example:
x = int(1)
y = int(2)
if x == y :
print 'X and Y have the same value'
else :
print 'X and Y are different'
output = X and Y have the same value
X and Y are different
Also the following syntax error is outputted.
Traceback (innermost last):
(no code object) at line 0
File "<input>", line 1
else :
^
SyntaxError: invalid syntax
thanks/Brian
|
|
From: Phillips <za...@wh...> - 2001-10-08 13:34:59
|
I'm new to Jython, but I'm pretty confident the demo applets at http://www.jython.org/applets/index.html all fail to run in IE 4.0 Here's the IE 4.0 stack trace: com.ms.security.SecurityExceptionEx[org/python/core/Py.initProperties]: Unable to access system properties. at com/ms/security/permissions/PropertyPermission.check at com/ms/security/PolicyEngine.shallowCheck at com/ms/security/PolicyEngine.checkCallersPermission at com/ms/security/StandardSecurityManager.chk at com/ms/security/StandardSecurityManager.checkPropertiesAccess at java/lang/System.getProperties at org/python/core/Py.initProperties at org/python/core/Py.initProxy at HelloWorld.__initProxy__ at HelloWorld.<init> at com/ms/applet/BrowserAppletFrame.newInstance at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.processSentEvent at com/ms/applet/AppletPanel.run at java/lang/Thread.run Microsoft (R) VM for Java (tm), 4.0 Release 4.79.0.2424 ============================================== Any suggestions? Thanks in advance. Ian P. |
|
From: <bc...@wo...> - 2001-10-06 23:14:38
|
[Carlos Quiroz] >For instance pyunit.py could be a valuable addition, Hmm, what is pyunit.py? I cant't find anything with that name in my CPython directories. We have already decided that unittest.py will be included in the next release. regards, finn |
|
From: <bc...@wo...> - 2001-10-06 20:43:43
|
[Nikola Milutinovic] >I'm running Tru64 UNIX 4.0F (a.k.a. Digital UNIX (a.k.a. DEC >OSF/1)) and Java SDK 1.3.0 This is my problem: >Legba:/usr/local/java# /usr/opt/java130/bin/java -classpath . jython-20 -o Jython-2.0 lib >try path /usr/local/java/ >can not get flavour null for os 'OSF1' >So, it fails and I have no idea why. You can try to tell the installer that Tru64 is a unix with the -f option: java -classpath . jython-20 -o Jython-2.0 -f unix lib (The next release of jython will recognize Tru64 automaticly) regards, finn |
|
From: <bc...@wo...> - 2001-10-06 20:42:37
|
[Erik Heneryd] >consider the following function: > >def f(): > try: > return 1 > except SomeException: > return 2 > except: > return 3 > >when i try to call this in jython, running on the jvm included in >win 2000, jython will die. problem seems to be that you cant have >a return in the try block if you have returns in all of the >following excepts. > >this works fine with other jvms ive tried, so i guess this is a bug >in ms' jvm? Yes, it is seems to be a MS-only issue. Your small example made it a lot easier to track down (it is the same problem that have prevented the use of jview with jythonc). A fix have been commited to CodeCompiler.java. Thanks for reporting the bug with such a small test example. regards, finn |
|
From: <bc...@wo...> - 2001-10-06 20:41:09
|
[Erik Heneryd] >i'm having trouble getting zlib to work, it just throws exceptions at = >me. >i know this lib is new, is this a known issue? I was not aware of the problem. It is caused by a bug in java1. I have added a workaround to zlib.py. Thanks for the bug report. regards, finn |
|
From: VCD & M. <da...@mi...> - 2001-10-06 00:14:27
|
|
From: Titus B. <ti...@ca...> - 2001-10-04 16:42:41
|
-> Dear Jython Developers, -> -> i would like to to use Jython with Java Web Start. I would like to embed -> Jython Scripts in my application. I don´t want to use jythonc, because i -> want to deliver the Jython scripts independently of the jars of my -> application. Even our users should be allowed to write their custom -> jython scripts. My application has to run with or without WebStart. If i -> run my application without WebStart, it works. I use Jython 2.0. If i -> run my application with WebStart, i get the following Error Message: Web Start relies on everything being present in the JAR; see the Web Start page. --titus |
|
From: Romano C. <ca...@di...> - 2001-10-04 16:34:58
|
Dear Jython Developers,
i would like to to use Jython with Java Web Start. I would like to embed
Jython Scripts in my application. I don=B4t want to use jythonc, because =
i
want to deliver the Jython scripts independently of the jars of my
application. Even our users should be allowed to write their custom
jython scripts. My application has to run with or without WebStart. If i
run my application without WebStart, it works. I use Jython 2.0. If i
run my application with WebStart, i get the following Error Message:
File "<iostream>", line 3, in ?
ImportError: no module named de
I use the following test program to invoke the Jython interpreter:
package de.disy.lfu.sds;
import java.util.Properties;
import java.io.File;
import java.io.InputStream;
import java.io.IOException;
import java.net.URL;
import javax.swing.table.DefaultTableModel;
import org.python.util.PythonInterpreter;
import org.python.core.PyObject;
import org.python.core.PyJavaInstance;
import org.python.core.PyException;
import de.disy.lfu.sds.server.Globals;
public class JythonTest {
public static void main( String[] args ) {
Globals.createGlobals(); // some initialization
try {
File tmpFile =3D File.createTempFile( "jython", null ); // to get
the name of the System temp directory
tmpFile.delete();
Properties props =3D new Properties();
props.setProperty( "python.cachedir", new File(
tmpFile.getParent(), "jythoncache" ).getAbsolutePath() ); // set the
jython cachedir to the directory "jythoncache" in the temp directory
PythonInterpreter.initialize( System.getProperties(), props, new
String[] { "" } );
// Globals.getCodeBase() gets the CodeBase, if the Application
runs with WebStart, or the current directory, if the Application runs
without WebStart
URL url =3D new URL( Globals.getCodeBase(),
"Repositories/Scripts/MesstellenFilter.py" );
InputStream is =3D url.openStream();
PythonInterpreter interp =3D new PythonInterpreter();
interp.execfile( is );
PyObject setResult =3D interp.get( "setResult" );
setResult.__call__( new PyJavaInstance( new DefaultTableModel() )
);
}
catch( IOException e ) {
e.printStackTrace();
}
catch( PyException e ) {
e.printStackTrace();
throw e;
}
}
}
The Jython-Script "Messtellenfilter.py" has the following content:
from jarray import array
from de.disy.lib.table import TableOperations
from de.disy.lib.table import Table
from de.disy.lib.table import Comparator
from de.disy.lib.table import DefaultComparator
from de.disy.lib.tools import DebugStream
def setResult( result ):
global bereich
table =3D Table( result ).mapColumns( array( [1], 'i' ) )
table =3D TableOperations.distinct( table, array( [0], 'i' ), array(
[DefaultComparator()], Comparator ) )
if table.rowCount =3D=3D 1:
bereich =3D table.get( 0, 0 ).intValue()
else:
bereich =3D None
DebugStream.println( "setResult" );
def acceptSelector( selector ):
if selector =3D=3D "MesswertS.sel":
return bereich =3D=3D 3
elif selector =3D=3D "MesswertS2.sel":
return bereich =3D=3D 7
Maybe the problem is that Jython uses its own ClassLoader, and WebStart
uses its own ClassLoader too. Maybe Jython expects the classes used in
the script to reside in the ClassPath. Because WebStart uses its own
ClassLoader, the classes aren't in the ClassPath, the ClassPath contains
only two JNLP specific Jars.
Best regards,
Romano Caserta
-- =
++ Besuchen Sie uns auf der begleitenden Fachausstellung zur =
++ Umweltinformatik 2001, dem 15.Internationalen Symposium Informatik
++ f=FCr den Umweltschutz vom 10.- 12.10.2001 in der ETH Z=FCrich, Schwei=
z.
++ Weitere Informationen:
++ http://www.empa.ch/deutsch/fachber/empasg/iep01/Exhibition.htm
+--------------------------------------------------------------------+
| Romano Caserta ca...@di... |
| disy Informationssysteme GmbH http://www.disy.net |
| Stephanienstr. 30 Tel: +49 721 1600-630 |
| D-76133 Karlsruhe, Germany Fax: +49 721 1600-605 |
+--------------------------------------------------------------------+
++disy - wir optimieren Ihre Informations- und Kommunikationsprozesse++
|
|
From: Phil S. <phi...@ho...> - 2001-10-04 07:00:30
|
Any chance you could fit my suggested patch for allowing python files to be imported from the classloader? I'm working on integrating ant and jython more closely, and this patch would help. Right now accessing jython from ant requires you to add jython.jar to your ant/lib directory and add all the standard modules to ant/lib/Lig (that's the ugly part). I'd love this to get into 2.1! Here's the patch again: Phil Surette wrote: > > I've often wanted to be able to distribute jython + standard modules in > a single jar. In order to do this, you need to be able to load .py files > from the classpath. > > After poking through the jython code, I found that this patch to > org/jython/core/imp.java in jython-2.1a3 does the trick: > imp.java > 498a499,502 > > //if it's not a builtin or in the python path, try the classpath > > ret = loadFromClassLoader(name, imp.class.getClassLoader()); > > if (ret != null) return ret; > > > > Carlos Quiroz wrote: > > Hi > > I've noticed that the development hasn't been advancing lately, at > least I haven't get anything with a CVS update. I'd like to ship a > stable 2.1 version soon. > > If there is something I could do to help, some tasks or bugs to fix, > I'd be willing to invest some time on that, > > regards |
|
From: Carlos Q. <car...@we...> - 2001-10-02 21:41:46
|
On Tuesday 02 October 2001 22:37, Finn Bock wrote: > [Carlos Quiroz] > > >What about new modules, which ones are going to be added, > > Checkout the installer/liftoff.filelist file for a list of modules which > will be included in a release. > > >or if you want how to make a CPython package qualify as acceptable to > >Jython? > > When the module pass the testscript from CPython or when somebody says > that the module is usefull even when it doesn't pass the test. > > Do you have some particular modules in mind? For instance pyunit.py could be a valuable addition, some other stuff too. I'll make a comparision between CPython and Jython and use the tests to see which can be included AS IS. > > regards, > finn > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Carlos Q. <car...@we...> - 2001-10-02 21:35:51
|
On Wednesday 03 October 2001 00:27, Carlos Quiroz wrote: > > I made already a xreadlines module, which is passing the test in CPython, > however I'm reading everything at the begining which is probably not good > for interactive streams, i.e. sys.in. Any opinion about that? > BTW could you tell me if xreadlines.xreadlines(somehting) should return a PyObject or a PyList It looks to me that making a for x in xreadlines.xreadlines(somehting) requires it to be a PyList, or am I wrong? Whan it is not a PyList is getting AttributeError with __getitem()__ missing but not with PyList. Or is it enough to export a method list? Regards |
|
From: Carlos Q. <car...@we...> - 2001-10-02 21:30:11
|
On Tuesday 02 October 2001 22:30, Finn Bock wrote: > Me too. I have been way to busy and jython have suffered for a while. > I'm afraid it will suffer for a while more. We are all busy, just trying to do something in our spare time :-) > >If there is something I could do to help, some tasks or bugs to fix, I'd > >be willing to invest some time on that, > > The xreadlines module is AFAIK last of the modules that we to be 2.1 > compatible. The initial version of xreadlines doesn't have to be any > faster then using file.readlines(). I want it mostly for the API. I made already a xreadlines module, which is passing the test in CPython, however I'm reading everything at the begining which is probably not good for interactive streams, i.e. sys.in. Any opinion about that? I'll do a patch for xreadlines in file too > > Patches to some of the bugs will also be very helpfull. Regards > > regards, > finn > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: <bc...@wo...> - 2001-10-02 19:34:57
|
[Carlos Quiroz] >What about new modules, which ones are going to be added, Checkout the installer/liftoff.filelist file for a list of modules which will be included in a release. >or if you want how to make a CPython package qualify as acceptable to >Jython? When the module pass the testscript from CPython or when somebody says that the module is usefull even when it doesn't pass the test. Do you have some particular modules in mind? regards, finn |
|
From: <bc...@wo...> - 2001-10-02 19:28:03
|
[Carlos Quiroz] >I've noticed that the development hasn't been advancing lately, at least >I haven't get anything with a CVS update. I'd like to ship a stable 2.1 >version soon. Me too. I have been way to busy and jython have suffered for a while. I'm afraid it will suffer for a while more. >If there is something I could do to help, some tasks or bugs to fix, I'd >be willing to invest some time on that, The xreadlines module is AFAIK last of the modules that we to be 2.1 compatible. The initial version of xreadlines doesn't have to be any faster then using file.readlines(). I want it mostly for the API. Patches to some of the bugs will also be very helpfull. regards, finn |
|
From: Carlos Q. <car...@rt...> - 2001-10-02 10:09:54
|
This sounds to me like a indentation problem.=20 maybe the file you are reading has mixed tabs and spaces or something like that. OTOH maybe the runsource is not the best thing to do. Why don't you use push, or directly execfile? > Traceback (innermost last): > (no code object) at line 0 > File "<input>", line 1 > else : > ^ > SyntaxError: invalid syntax >=20 > thanks/Brian >=20 >=20 > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev >=20 |
|
From: Brian L. (EEI) <Bri...@ee...> - 2001-10-02 09:55:17
|
I'm using Jython from a PC and Window NT. I do not run Jython from the command Shell I'm importing the following classes in order to run Jython scripts:
PythonInterpreter;
InteractiveInterpreter;
InteractiveConsole
I'm reading in the Jython script, it is read line by line using the following:
:
while ((inputLine = in.readLine()) != null){
taskText += (inputLine + "\n");
:
The Jython file is executed, line by line via the interpreter using the method runsource().
I'm experiencing a problem with IF and WHILE statements. The interpreter does not like the symbol "\n". Obviously there is other symbols to show that a jython line is associated with the IF statement. Also there is probably a symbol which indicates that if/while statement has ended. Can you tell me the end of line symbols that are associated with IF/While statements.
Here are two scripts I ran with my Java program, the output is shown below. I also ran the following 2 scripts with Jython on the command shell and they worked ok:
class example:
x = int(1)
y = int(1)
while x < 5 :
x = x + 1
print x
output = 2 but should be 5.
class example:
x = int(1)
y = int(2)
if x == y :
print 'X and Y have the same value'
else :
print 'X and Y are different'
output = X and Y have the same value
X and Y are different
Also the following syntax error is outputted.
Traceback (innermost last):
(no code object) at line 0
File "<input>", line 1
else :
^
SyntaxError: invalid syntax
thanks/Brian
|
|
From: Carlos Q. <car...@we...> - 2001-09-29 21:53:27
|
Hi
I noticed that some messages like *sys-package-mgr*: processing new jar and
certain exceptions are being reported directly in the Py class at the line
1586 in the maybeWrite function as
public static void maybeWrite(String type, String msg, int level) {
if (level <= Options.verbose) {
System.err.println(type+": "+msg);
}
}
However this behavior creates some problems since some exceptions are not
reported in the interpreter to the err output stream. I don't see any way to
modify this behavior so to get those exception reported to the right place.
Is this a design feature or bug? Is it going to be changed?
Regards
|
|
From: Samuele P. <pe...@in...> - 2001-09-29 18:43:02
|
> > I'm writing a little utility that will run a Jython script and when it > catches an error it will open an editor and jump to the line number that > contains the offending script. I'm starting with a Java application and am > correctly catching a forced example exception. Jython gives the exception a > PyException object. From PyException how may I get a PyTraceback object, so > I may get the line number from tb_lineno? > my deep intuition says PyException.traceback :) |
|
From: Frank C. <fc...@pu...> - 2001-09-29 15:49:10
|
I'm writing a little utility that will run a Jython script and when it catches an error it will open an editor and jump to the line number that contains the offending script. I'm starting with a Java application and am correctly catching a forced example exception. Jython gives the exception a PyException object. From PyException how may I get a PyTraceback object, so I may get the line number from tb_lineno? -Frank -- Frank Cohen, founder, PushToTest, www.pushtotest.com, phone: 408 374 7426 Come to PushToTest for Load, a free open-source tool for performance and scalability testing and data migration. |