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: Sebastien P. <Seb...@is...> - 2001-09-11 07:35:48
|
Hi all, I get a "read-only attribute" error when I try to assign a value to an inherited protected attribute. The FAQ talks about protected static fields, which is not the case. Is there any turnaround? BTW, I was wondering how to access the ".class" attribute of any Object in Java from Jython, and how to do an "instanceof" instruction in Jython. Cheers, -- Sebastien. |
From: Robert W. B. <rb...@di...> - 2001-09-11 03:56:42
|
On Mon, 10 Sep 2001, C. Porter Bassett wrote: > Robert W. Bill wrote: > > You should get a test.class and a test$_PyInner.class as a result > > of the jythonc compile. Both are required to run, and when you > > get both, you've gotten it to work properly. You're almost there! > > Thanks for all your help! I have gotten it to compile with jythonc, and I > have both of the .class files now, but I cannot get it to run. I try to run > it with either java or jview, and I get this error in java: > java.lang.NoClassDefFoundError: org/python/core/PyObject > and the following error with jview: > java.lang.NoClassDefFoundError: org/python/core/Py > at test.main (test.java:60) > ERROR: java.lang.NoClassDefFoundError: org/python/core/Py > > What do I do now? I'm so close, I can taste it! Include the Jython.jar file in the classpath when running the compiled classes. The missing "org.python.core.PyObject" and other classes that the errors report as missing are found in the jython.jar file. If test.class and test$_PyInner.class are in the current directory, use: java -cp .;c:\jython-2.1a3\jython.jar test -rb |
From: C. P. B. <po...@et...> - 2001-09-11 02:59:35
|
Robert W. Bill wrote: > You should get a test.class and a test$_PyInner.class as a result > of the jythonc compile. Both are required to run, and when you > get both, you've gotten it to work properly. You're almost there! Thanks for all your help! I have gotten it to compile with jythonc, and I have both of the .class files now, but I cannot get it to run. I try to run it with either java or jview, and I get this error in java: java.lang.NoClassDefFoundError: org/python/core/PyObject and the following error with jview: java.lang.NoClassDefFoundError: org/python/core/Py at test.main (test.java:60) ERROR: java.lang.NoClassDefFoundError: org/python/core/Py What do I do now? I'm so close, I can taste it! |
From: dman <ds...@ri...> - 2001-09-11 02:23:26
|
On Mon, Sep 10, 2001 at 10:52:18AM +0200, Sebastien Pierre wrote: | I have in my classpath every possible jar on my system. The problem is It is better to have only what you need for a given app. This is especially true when you might have more than one version of a given package for different purposes. Just an example, you might have multiple JVMs and then you would need different classes.zip/rt.jar files for each one. | that at startup Jython looks in every jar without caching the | information somewhere. This leads to a +20s slowdown at each runtime... It is supposed to. I have been getting "can't write to cache" errors lately but I have no idea why (windows/cygwin, dir is writable). I have "new" jars pretty frequently anyways. -D |
From: dman <ds...@ri...> - 2001-09-11 02:20:37
|
On Mon, Sep 10, 2001 at 10:22:05AM -0500, Robert W. Bill wrote: | On Sun, 9 Sep 2001, C. Porter Bassett wrote: | > | > First of all, I apologize if this is RTFM. I tried, but didn't make it very | > far. | > | > I have some python experience, but absolutely *no* java experience, and I am | > trying to get jython 2.0 up and running on my win2k box. | > | > I downloaded it and installed it with jview | | | Here's the suspicious part- "jview". With jview, you must first run | "clspack -auto" before using Jython. Additionally, don't use jview to | compile Jython code to bytecode. Use jikes or sun's javac instead. First 'jythonc' is used to compile jython source to java source. Then jikes or javac can be used to compile the java source to java bytecode. Anyways, jythonc runs the java compiler for you as long as it can find it. HTH, -D |
From: Ted B. <te...@et...> - 2001-09-11 00:39:46
|
On Monday 10 September 2001 09:17, Richard Cook wrote: > if I write (in tst.py) > > from javax.swing import * > b=JLabel("bob", displayedMnemonic=66) > > jython tst.py gives: > > Traceback (innermost last): > File "tst.py", line 2, in ? > AttributeError: read-only attr: displayedMnemonic > > If I have this: > > from javax.swing import * > > class Dummy(JPanel): > pass > > b=JLabel("bob", displayedMnemonic=66) > > Then I get no complaint. Am I doing something wrong? > > Also, because displayedMnemonic is an int property, > > b=JLabel("bob", displayedMnemonic='b') > fails (can't convert string to int) > > but > b.setDisplayedMnemonic('b') works OK because presumably it calls > setDisplayedMnemonic(char) > > Is there a way to set displayedMnemonic in the constructor more naturally? > b = JLabel( "bob", displayedMnemonic=ord( 'b' ) ) ted |
From: C. P. B. <po...@et...> - 2001-09-10 17:24:36
|
> Here's the suspicious part- "jview". With jview, you must first run > "clspack -auto" before using Jython. Additionally, don't use jview to > compile Jython code to bytecode. Use jikes or sun's javac instead. > OK, I downloaded sun's java sdk 1.3.1_01, and tried again. The registry file is exactly as I got it out of the box, except for the following 2 lines: python.jythonc.compiler = c://jdk1.3.1_01/bin/java.exe python.path = c:\\jython\\lib Again, my little test program works with jython. I then tried the following: jythonc test.py I got errors again. Here they are: 1042:PWORK:~$ jythonc test.py processing test Required packages: Creating adapters: Creating .java files: test module Compiling .java to .class... Compiling with args: ['c://jdk1.3.1_01/bin/java.exe', '-classpath', 'C:\\jython-2.0\\jython.jar;C:\\Program Files\\proe2000i2\\modchk\\java\\xml\\xml4j.jar;.\\jpywork;;C:\\jython-2.0\\ Tools\\jythonc;C:\\cygwin\\home\\porter\\.;C:\\jython-2.0\\Lib;c:\\jython\\l ib;C:\\jython-2.0', '.\\jpywork\\test.java'] 1 java.lang.NoClassDefFoundError: /\jpywork\test/java Exception in thread "main" ERROR DURING JAVA COMPILATION... EXITING 1043:PWORK:~$ I then tried something from the documentation that I didn't understand: jython test.class test.py This ran the script, and created a file test$py.class. It also gave me an erorr "Could not find class: test.class" I don't think that it worked, because when I run java -cp . test\$py.class I get a java.lang.NoClassDefFoundError. What is my next step to getting things working? |
From: Garcia, M. <mg...@Bu...> - 2001-09-10 16:28:17
|
I'm using Emacs with the Python-Major mode which provide syntax highlighting, compilation, along with interpreter interaction. -----Original Message----- From: Carlos Quiroz To: jyt...@li... Sent: 9/9/01 12:08 PM Subject: Re: [Jython-users] What are Jython folks using to edit? On Sunday 09 September 2001 18:47, Frank Cohen wrote: I made a plugin for including a Jython interpreter in jEdit http://www.jedit.org jEdit is an excellent editor that has Python syntax coloring an quite many other features. I use it normally and I can test the stuff directly Carlos > I'm considering contributing code to NetBeans as an IDE to do Jython script > editing. I'm wondering what people are using to edit Jython scripts? > > Information on NetBeans is at http://www.netbeans.org > Info on my project is at http://www.pushtotest.com > > -Frank _______________________________________________ Jython-users mailing list Jyt...@li... https://lists.sourceforge.net/lists/listinfo/jython-users |
From: Richard C. <rp...@op...> - 2001-09-10 16:17:32
|
if I write (in tst.py) from javax.swing import * b=JLabel("bob", displayedMnemonic=66) jython tst.py gives: Traceback (innermost last): File "tst.py", line 2, in ? AttributeError: read-only attr: displayedMnemonic If I have this: from javax.swing import * class Dummy(JPanel): pass b=JLabel("bob", displayedMnemonic=66) Then I get no complaint. Am I doing something wrong? Also, because displayedMnemonic is an int property, b=JLabel("bob", displayedMnemonic='b') fails (can't convert string to int) but b.setDisplayedMnemonic('b') works OK because presumably it calls setDisplayedMnemonic(char) Is there a way to set displayedMnemonic in the constructor more naturally? Thanks, Richard ------------------------------------------- The Fastest Browser on Earth. Get your FREE download of Opera at http://www.opera.com/download/ ------------------------------------------- |
From: Sebastien P. <Seb...@is...> - 2001-09-10 15:57:08
|
Hi all, I have written two classes, namely XMLElement and XMLTextElement in a file named XMLElement.py. I load this file using a PythonInterpreter in my main static method of my main class. Another class (XMLDocument) makes use of reflection using the Class.forName("XMLElement.XMLElement") to get the class I declared in Python. The problem is that the class is not found. So I looked in the FAQ and have not seen any answer, so here are the possibilties I can think of: - Python does not define classes that are usable from the running JVM - The classes are put in a package I don't know about. If this is the case, how can I specify in which packages my Python classes should go? Cheers, -- Sebastien. |
From: Sebastien P. <Seb...@is...> - 2001-09-10 15:49:36
|
"Robert W. Bill" wrote: > It would be better to get the cache to work property as it seems an > important optimization. Make sure permissions allow writing the cachedir > and maybe double check to see if the python.home property is correct. Actually the fact excerpt just made it ;) Cheers, -- Sebastien. |
From: Robert W. B. <rb...@di...> - 2001-09-10 15:42:04
|
On Mon, 10 Sep 2001, Sebastien Pierre wrote: > Hi all, > > I have in my classpath every possible jar on my system. The problem is > that at startup Jython looks in every jar without caching the > information somewhere. This leads to a +20s slowdown at each runtime... > > Is there a possiblility to disable this step and only give jars that are > needed, or maybe turn on a caching property that may be off? Is there an error message each time the cache is unable to write the package cache? Do permissions not allow you to write to the cachedir? Are you referring to PyServlet or some tool that uses sys.add_extdir? You can limit the jars in your classpath to limit the startup overhead. This is also good because extraneous jars seems to have a performance effect on Java loading anyway (or is it just me?). It would be better to get the cache to work property as it seems an important optimization. Make sure permissions allow writing the cachedir and maybe double check to see if the python.home property is correct. -rb |
From: Robert W. B. <rb...@di...> - 2001-09-10 15:23:42
|
On Sun, 9 Sep 2001, C. Porter Bassett wrote: > > First of all, I apologize if this is RTFM. I tried, but didn't make it very > far. > > I have some python experience, but absolutely *no* java experience, and I am > trying to get jython 2.0 up and running on my win2k box. > > I downloaded it and installed it with jview Here's the suspicious part- "jview". With jview, you must first run "clspack -auto" before using Jython. Additionally, don't use jview to compile Jython code to bytecode. Use jikes or sun's javac instead. -rb > into the directory > c:\WINNT\java\jython-2.0. I edited the registry file. I added two lines: > python.path=.;c:\\winnt\\java\jython-2.0\\lib > python.jythonc.compiler = jview > > Because of my utter lack of java knowledge, I didn't add any > python.jythonc.classpath or python.jythonc.compileropts. > > I ran a simple test program and it ran fine in jython. I then tried to > create java bytecode, and this is what happened: > 2111:PWORK:~$ jythonc test.py > Traceback (innermost last): > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\jythonc.py", line 4, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\main.py", line 70, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\compile.py", line 7, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\SimpleCompiler.py", line > 6, in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\ImportName.py", line 9, > in ? > File "C:\WINNT\Java\jython-2.0\Tools\jythonc\util.py", line 11, in ? > ImportError: no module named java > 2111:PWORK:~$ > > > Like I said, I tried following what instructions I could find. Could > somebody please help me get started with jython? |
From: Humbel O. <Otm...@bi...> - 2001-09-10 12:45:16
|
[ John McGreivey ] > The Emacs python-mode package is great. It's included with=20 > XEmacs, and perhaps others, and can be downloaded from=20 > http://python.org/emacs/python-mode/. It features syntax=20 > coloring, auto-indent, and other stuff, and it will start a=20 > Python session in its own buffer within emacs. It should be=20 > possible to make Jython your default Python for this, though=20 > I don't, since I use both Python and Jython, and I prefer to=20 > leave Python as the default for the Python shell, and run=20 > Jython in a standard shell buffer. Either way, emacs is a=20 > cool environment to run python in because (among other=20 > reasons) you can save your session for future reference as a=20 > text file. >=20 > Re: NetBeans: I've tried using it for Java coding, and it's=20 > fine, but I suppose I always use XEmacs for real stuff=20 > because I'm familiar with it and it has great features and is=20 > fully customizable, and it requires no mouse use if you don't want to. >=20 > I guess JED (an emacsish editor) also has a python mode, from=20 > what I've read. It's supposed to be simialr to the Emacs python-mode. Just another 2 $ on Emacs from my side. Best wishes, Oti. |
From: Humbel O. <Otm...@bi...> - 2001-09-10 12:31:36
|
Hello, when there is an 'invalid' .jar file in the classpath from where java can load classes, but from which the jython package manager cannot determine packages (other people have told us about similar problems with the jar utility here), I would nonetheless like to be able to import single java classes. The problem manifests as follows (package CH.obj.Libraries.Servlet lives inside the offending bisonInfra.jar): [appl|pwe] > jython *sys-package-mgr*: processing modified jar, 'E:\java\lib\bisonInfra.jar' *sys-package-mgr*: skipping bad jar, 'e:\java\lib\bisonInfra.jar' Jython 2.0 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from CH.obj.Libraries.Servlet import ServletSessionContext Traceback (innermost last): File "<console>", line 1, in ? ImportError: No module named Servlet >>> from java.lang import Class >>> clazz = Class.forName( "CH.obj.Libraries.Servlet.ServletSessionContext" ) >>> clazz <jclass CH.obj.Libraries.Servlet.ServletSessionContext at 7698425> >>> For an 'intuitive' Jython user like me, there is no obvious reason why this import should fail ? My motto is: Jython can import everything java can load ! With the following lines added just at the beginning of method importFromAs in org/python/core/imp.java (from the 2.0 codebase): public static void importFromAs(String mod, String[] names, String[] asnames, PyFrame frame) { if ( names.length==1 && asnames.length==names.length && asnames[0].equals(names[0]) ) { // this is a candidate for simple java class import String packageName = mod; String fullClassName = packageName + "." + names[0]; try { Class.forName( fullClassName ); PySystemState.add_package( packageName ); } catch( Throwable t ) {} } // rest of method left untouched // ... } the problem above would be solved. These lines do not at all claim to be perfect, they are thought just to show that it could be done: [appl|pwe] > jython *sys-package-mgr*: processing modified jar, 'E:\java\lib\bisonInfra.jar' *sys-package-mgr*: skipping bad jar, 'e:\java\lib\bisonInfra.jar' Jython 2.0 on java1.3.0 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> from CH.obj.Libraries.Servlet import ServletSessionContext >>> Please let me know what you think. Do not hesitate to blame me if this is ... Have fun, Oti. |
From: Sebastien P. <Seb...@is...> - 2001-09-10 08:53:06
|
Hi all, I have in my classpath every possible jar on my system. The problem is that at startup Jython looks in every jar without caching the information somewhere. This leads to a +20s slowdown at each runtime... Is there a possiblility to disable this step and only give jars that are needed, or maybe turn on a caching property that may be off? -- Sebastien. |
From: C. P. B. <po...@et...> - 2001-09-10 03:41:21
|
First of all, I apologize if this is RTFM. I tried, but didn't make it very far. I have some python experience, but absolutely *no* java experience, and I am trying to get jython 2.0 up and running on my win2k box. I downloaded it and installed it with jview into the directory c:\WINNT\java\jython-2.0. I edited the registry file. I added two lines: python.path=.;c:\\winnt\\java\jython-2.0\\lib python.jythonc.compiler = jview Because of my utter lack of java knowledge, I didn't add any python.jythonc.classpath or python.jythonc.compileropts. I ran a simple test program and it ran fine in jython. I then tried to create java bytecode, and this is what happened: 2111:PWORK:~$ jythonc test.py Traceback (innermost last): File "C:\WINNT\Java\jython-2.0\Tools\jythonc\jythonc.py", line 4, in ? File "C:\WINNT\Java\jython-2.0\Tools\jythonc\main.py", line 70, in ? File "C:\WINNT\Java\jython-2.0\Tools\jythonc\compile.py", line 7, in ? File "C:\WINNT\Java\jython-2.0\Tools\jythonc\SimpleCompiler.py", line 6, in ? File "C:\WINNT\Java\jython-2.0\Tools\jythonc\ImportName.py", line 9, in ? File "C:\WINNT\Java\jython-2.0\Tools\jythonc\util.py", line 11, in ? ImportError: no module named java 2111:PWORK:~$ Like I said, I tried following what instructions I could find. Could somebody please help me get started with jython? |
From: Brian Z. <bri...@ya...> - 2001-09-10 01:06:02
|
For me I use vim the most. But I don't think vi works well (or at all) on the handheld. Recently I also discovered SciTE http://www.scintilla.org/SciTE.html which is excellent. Quote from their web site: "Development of Scintilla started as an effort to improve the text editor in PythonWin..." It supports ASP or PHP better than vim IMHO. -Brian ----- Original Message ----- From: "Frank Cohen" <fc...@pu...> To: <jyt...@li...> Sent: Sunday, September 09, 2001 8:47 AM Subject: [Jython-users] What are Jython folks using to edit? > I'm considering contributing code to NetBeans as an IDE to do Jython script > editing. I'm wondering what people are using to edit Jython scripts? > > Information on NetBeans is at http://www.netbeans.org > Info on my project is at http://www.pushtotest.com > > -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. > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: dman <ds...@ri...> - 2001-09-09 22:35:25
|
On Sun, Sep 09, 2001 at 11:43:57PM +0100, Ype Kingma wrote: | Frank, | | >I'm considering contributing code to NetBeans as an IDE to do Jython script | >editing. I'm wondering what people are using to edit Jython scripts? I too use vim or gvim (depending on whether I want to work in the console I'm in or a new GUI window). | On unix I use vi, on the mac BBEdit, | and everywhere else any flat text editor. | I grew up in vi and somehow never needed emacs. Vi has good | python support under unix (syntax coloring, indentation). Which vi are you using? vim has been ported to the mac as well as almost every other platform. I just can't deal with any other editor :-). (BTW, I even have gvim built with the GTK+ gui to run in XFree under cygwin on win2k) -D |
From: Ype K. <yk...@xs...> - 2001-09-09 21:38:21
|
Frank, >I'm considering contributing code to NetBeans as an IDE to do Jython script >editing. I'm wondering what people are using to edit Jython scripts? On unix I use vi, on the mac BBEdit, and everywhere else any flat text editor. I grew up in vi and somehow never needed emacs. Vi has good python support under unix (syntax coloring, indentation). BBEdit has very nice multifile regex searching capabilities, but I use python/jython only very occasionaly on the Mac. Surprisingly the flat text editors on other platforms are a lot easier to use with python than I expected because of the easy syntax. They do leave the occasional missing colon or inconsistent dedent, so better support for python is certainly possible, but not a prime concern. None of the editors I use can identify a possible NameError. Since this is my most frequent mistake (mistyping a name), this might be really nice to have. Importing modules just for name editing purposes might be overkill, though. Good luck, Ype |
From: John M. <mcg...@re...> - 2001-09-09 20:51:31
|
The Emacs python-mode package is great. It's included with XEmacs, and= perhaps others, and can be downloaded from= http://python.org/emacs/python-mode/. It features syntax coloring,= auto-indent, and other stuff, and it will start a Python session in its= own buffer within emacs. It should be possible to make Jython your default= Python for this, though I don't, since I use both Python and Jython, and I= prefer to leave Python as the default for the Python shell, and run Jython= in a standard shell buffer. Either way, emacs is a cool environment to run= python in because (among other reasons) you can save your session for= future reference as a text file. Re: NetBeans: I've tried using it for Java coding, and it's fine, but I= suppose I always use XEmacs for real stuff because I'm familiar with it= and it has great features and is fully customizable, and it requires no= mouse use if you don't want to. I guess JED (an emacsish editor) also has a python mode, from what I've= read. It's supposed to be simialr to the Emacs python-mode. --JOHN |
From: Anthony E. <me...@an...> - 2001-09-09 16:58:32
|
When I run a Java application as an executable JAR the files and directories listed in the Class-path entry of the JAR's manifest do not get placed on the system class path and thus are not available to my embedded Jython interpreter. Does anyone have any ideas on how to get around this so that these items are accessible to Jython. Thanks. Sincerely, Anthony Eden |
From: Carlos Q. <car...@we...> - 2001-09-09 16:13:05
|
Unfortunately this doesn't work either. My application is a plugin enclosed in another application which already has a security manager. Is there any license reason why I can't make my own jython distribution and expand it as a jar file? > Carlos Quiroz wrote: > > On Friday 07 September 2001 09:02, Finn Bock wrote: > > > [Carlos Quiroz] > > > > Hi > > > > Now everything is almost working but.... > > > > The installer has several System.exit(o) calls, that kill my embedded > > application :-( > > Well, one thing you can do is install a security manager that will ignore > the System.exit() calls (see below). You can get lots fancier, and check > the context of the call, etc., but this should prevent the exit from > occurring. Unfortunately, it will throw a SecurityException in the thread > that calls System.exit(). This is reasonable (you don't want the installer > thread processing any code after it tried to call exit, do you?), but it > means the code that calls the installer will have to handle the exception, > and that if something between your code and the call to System.exit() hides > the exception, you don't know what will happen. > > I know some servlet containers, etc., make System.exit() a no-op, but I'm > not sure how they manage that, and not sure you'd like that anyway: > > if beSafe: > System.exit(1) > doSomethingDangerous() > > :-) > > kb > > --- > from java.security import * > from java.lang import * > > class SM( SecurityManager ): > def __init__( self, delegate ): > self.allowExit = 0 > self.delegate = delegate > def checkExit( self, status ): > if self.allowExit: > SecurityManager.checkExit( self, status ) > else: > raise SecurityException( "Not allowed to exit at this time" ) > > def checkPermission( self, perm, context=None ): > if self.delegate: #allow anything if we don't have a delegate > if context: > self.delegate.checkPermission( self, perm ) > else: > self.delegate.checkPermission( self, perm, context ) > > sec = System.getSecurityManager() > sm = SM( sec ) > System.setSecurityManager( sm ) > try: > System.exit(0) > except: > print "not allowed to exit" > print "Did not exit" > > System.setSecurityManager( sec ) # replace original security manager, or > could just set allowExit print "Trying to exit again" > System.exit(0) > print "You won't see this" > > --- |
From: Carlos Q. <car...@we...> - 2001-09-09 16:11:04
|
On Sunday 09 September 2001 18:47, Frank Cohen wrote: I made a plugin for including a Jython interpreter in jEdit http://www.jedit.org jEdit is an excellent editor that has Python syntax coloring an quite many other features. I use it normally and I can test the stuff directly Carlos > I'm considering contributing code to NetBeans as an IDE to do Jython script > editing. I'm wondering what people are using to edit Jython scripts? > > Information on NetBeans is at http://www.netbeans.org > Info on my project is at http://www.pushtotest.com > > -Frank |
From: Frank C. <fc...@pu...> - 2001-09-09 15:47:34
|
I'm considering contributing code to NetBeans as an IDE to do Jython script editing. I'm wondering what people are using to edit Jython scripts? Information on NetBeans is at http://www.netbeans.org Info on my project is at http://www.pushtotest.com -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. |