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 W. <ch...@ni...> - 2002-02-26 19:33:42
|
Terry Hancock wrote: > > Nicolas Bill Russell wrote: > > I just want to know if Jython is supported by Zope? I'm new to Python > > so go easy on me. :) > > As far as I know (and I've been looking -- still am), > there's no direct support for Jython in Zope. However, > Jython is strictly a *client-side* technology and > Zope is strictly *server-side* -- so in principle, there > isn't much overlap. Urm, I think you may be misunderstanding Jython. Jython is an implementation of the Python language in Java rather than C, as used by normal python. So, as such, Jython is only as client-side as python is. However, you can't run Zope on Jython because Zope requires several C-Extensions to Python which wouldn't work under Jython. cheers, Chris |
From: Samuele P. <pe...@in...> - 2002-02-26 19:24:18
|
From: Ype Kingma <yk...@xs...> > Alexander, > > >Hi, > > > >Is it possible to use PyChecker from Jython? If it can't check Java classes, how can I make PyChecker ignore Java packages? I'have played around some with the blacklist PyChecker option but I'm still getting import errors and PyChecker doesn't check my python code. Even if I wrap all Java class access into another python module, PyChecker still complains that it can't find the indirectly imported Java packages and quits without checking anything. > > > >Any help would be very much appreciated. > > PyChecker does most of it's work by checking the python byte codes generated by > the CPython compiler. sadly true. > Jython compiles to java byte codes and these cannot be checked by > PyChecker used from jython. > > Your best bet is to use PyChecker from CPython and have it analyze > your Jython modules. This means that PyChecker will fail to load > java byte code modules, but at least your python code should be checked. > > I don't know how PyChecker deals with modules it can't find. > AFAIK the first thing it does with an analyzed module is trying to plainly import it, if the module references something that cannot be imported, PyChecker dies. I care about these issues with PyChecker, and I have ideas and plans to make it work with Jython. Clearly a different approach by PyChecker would make everybody's life easier, OTOH with open source projects everybody has legitimately his own agenda. So what I'm planning are huge hacks and nobody should hold his breath <wink>. regards, Samuele Pedroni. |
From: Ype K. <yk...@xs...> - 2002-02-26 18:52:51
|
Alexander, >Hi, > >Is it possible to use PyChecker from Jython? If it can't check Java classes, how can I make PyChecker ignore Java packages? I'have played around some with the blacklist PyChecker option but I'm still getting import errors and PyChecker doesn't check my python code. Even if I wrap all Java class access into another python module, PyChecker still complains that it can't find the indirectly imported Java packages and quits without checking anything. > >Any help would be very much appreciated. PyChecker does most of it's work by checking the python byte codes generated by the CPython compiler. Jython compiles to java byte codes and these cannot be checked by PyChecker used from jython. Your best bet is to use PyChecker from CPython and have it analyze your Jython modules. This means that PyChecker will fail to load java byte code modules, but at least your python code should be checked. I don't know how PyChecker deals with modules it can't find. Good luck, Ype -- |
From: Terry H. <ha...@an...> - 2002-02-26 18:50:46
|
Nicolas Bill Russell wrote: > I just want to know if Jython is supported by Zope? I'm new to Python > so go easy on me. :) As far as I know (and I've been looking -- still am), there's no direct support for Jython in Zope. However, Jython is strictly a *client-side* technology and Zope is strictly *server-side* -- so in principle, there isn't much overlap. You could use DTML Methods/ Documents and File objects to hold the Jython code and the interpreter. What would be kind of cool, though, is a Zope product to encapsulate a Jython applet as a Zope object. I think it ought to: 1) Provide a syntax-sensitive editing interface (can we just use the one currently provided for Python scripts? I'm not sure if the syntax is similar enough. I mean -- is the syntax checker aware of standard modules (which may differ) or just legal Python syntax (which should be the same)? Actually, it occurs to me that this may not really be a "syntax checker" -- is it actually just importing the module and reporting the traceback from that? In which case, this is really the same as #3 below. 2) Automatically provide the wrapper code to deliver the Jython interpreter applet and generate the correct <applet> tags, etc. This would be akin to what Zope does for images. 3) It might be good to actually pre-compile into a .jar file (or whatever is appropriate -- I'm a Java/Jython newbie, so go easy on _me_ too ;) ), on the server. Probably one should do this whenever the program is edited on the server, and report errors/traceback from the program. This probably has to be done from an unrestricted Python module (which may in turn call other programs on the server, such as jythonc), so that means putting it in as an External method, or (better) including it in a Zope Product. With Jython, there's an obvious cache-optimization problem -- you want to make sure you only download the core/interpreter part once, and the applets separately. You also want to avoid triggering various security problems with client-side code, which seem to happen when you evaluate/execute strings inside of Python. This probably ought to be done on the server if it can't be avoided (?). It seems to me that there's enough repetitive work here to justify making a special product to simplify it. If you had this, I think you could just edit a Jython client-side method in Zope, save it (which would compile and store on the server), and then embed it into a DTML document, using <dtml-var myJythonObject>. I was thinking of waiting until the O'Reilly book on Jython comes out (I'm not experienced at Java, so I don't think the other book is going to help me so much), and then having a go at writing such a product myself, since I want to do a fairly large amount of Jython stuff with Zope. My attraction to this is the beauty of having both server and client programmed in the same programming language (Python), instead of having to learn and interface between two different ones. This would also reduce the burden of deciding where to draw the line between server- and client-side components, since they would then be relatively easy to port back and forth. So ... Has anyone already done this (and I'm just not so good at finding it), or is anyone interested in collaborating / discussing this with me? Cheers, Terry -- ------------------------------------------------------ Terry Hancock ha...@an... Anansi Spaceworks http://www.anansispaceworks.com P.O. Box 60583 Pasadena, CA 91116-6583 ------------------------------------------------------ |
From: Dinu G. <gh...@da...> - 2002-02-26 15:45:39
|
Finn Bock <bc...@wo...>: > As Samuele has explained, we can't do a chdir in 100% java and we will > *never* include JNI code with the jython distribution. Thanks for the clarification! I got the same explanation from Samuele over private email. Thanks, Samuele! > But we could (as we already do for the readline module) include support > code that require the presence of a JNI module to work. So if anybody > needed chdir() or chmod() or the full stat() values badly enough, she > could create a copy of the javaos.py module that used one of the JNI > module (there are several such candidates). > > We could then add a mechanisme to jython (in the registry) that allowed > users to choose either the existing 100% pure java version of "os" or > one the JNI alternatives. > > The fact that I haven't maintained jnios for quite a while should be a > good indication that I don't need chdir() myself. I'll check soon if I really need chdir or if I can replace it somehow... In fact, what I'm trying to do is port the ReportLab toolkit to Jython, and chdir is what seems to prevent the test suite (and some tools and demos) from working. So, my frustration is maybe more with Java than with Jython and surely I should have better investigated the issues instead of showing my Java ignorance. Sorry for that! What I'd suggest is some sort of collection of "porting stories" (Python to Jython) and/or issues to expect when doing this kind of thing. I'm not sure the FAQ is the best place for that, but maybe I'm wrong. OTOH, maybe it is too much to ask from Python programmers to code in a Jython-friendly way? Well, at least it would be helpful to know where to expect potential pitfalls. What do people think? The good news is that many parts of ReportLab seem to be working ok, especially the vector graphics stuff (after fixing the list builtin function)! Regards, Dinu |
From: <bc...@wo...> - 2002-02-26 15:04:25
|
[Dinu Gherman] >Hi, > >I'm just starting to use Jython on OS X and run into several >problems, obne of them being this: > >[localhost:~] dinu% jython >Jython 2.1 on java1.3.1 (JIT: null) >Type "copyright", "credits" or "license" for more information. >>>> import os >>>> os.chdir('..') >Traceback (innermost last): > File "<console>", line 1, in ? > File "/Applications/Additions/Jython-2.1/Lib/javaos.py", line 56, in chdir >OSError: [Errno 0] chdir not supported in Java: .. >>>> > >Any ideas? As Samuele has explained, we can't do a chdir in 100% java and we will *never* include JNI code with the jython distribution. But we could (as we already do for the readline module) include support code that require the presence of a JNI module to work. So if anybody needed chdir() or chmod() or the full stat() values badly enough, she could create a copy of the javaos.py module that used one of the JNI module (there are several such candidates). We could then add a mechanisme to jython (in the registry) that allowed users to choose either the existing 100% pure java version of "os" or one the JNI alternatives. The fact that I haven't maintained jnios for quite a while should be a good indication that I don't need chdir() myself. regards, finn |
From: <mag...@ya...> - 2002-02-26 13:33:06
|
Greetings! I just want to know if Jython is supported by Zope? I'm new to Python so go easy on me. :) Is there any other way to use Python to access serialized Java objects? Thanks! Regards, Bill Russell Gagalac-Nicolas --------------------------------- Do You Yahoo!? Get personalised at My Yahoo!. |
From: Oti <oh...@ya...> - 2002-02-26 13:01:05
|
--- ni...@bi... wrote: > Hi, I want to use jython to make some calculations in my java program > and return a result to my jython program. I am creating an instance > of jython interpreter in my java program and calling the > interpreter's exec method. It do some computatios and create a set of > objects. I have to use this set of objects in my java program. I mean > jython interpreter MUST return a set to my java program. However, the > exec method returns void value. How can I use jython in my java > program so that I can use the values that were calculated in jython > directly in my java code ? Thx, a lot. If you use the eval() method of the interpreter, you get the result back as a PyObject. You can then turn this into a Java Object using the static method Py.tojava(), or the __tojava__() method on PyObject itself. HTH, Oti. __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com |
From: Samuele P. <pe...@in...> - 2002-02-26 10:33:41
|
Have you seen that it requires a JNI lib? Samuele Pedroni. ----- Original Message ----- From: Dinu Gherman <gh...@da...> To: Samuele Pedroni <pe...@in...> Cc: <jyt...@so...> Sent: Tuesday, February 26, 2002 9:01 AM Subject: Re: [Jython-users] OSError: [Errno 0] chdir not supported in Java? > Samuele Pedroni <ped...@bl...>: > > > No this one is not a bug, > > chdir is not supported by Jython. > > Because it is not supported by Java. > > We could workaround > > but there is no clear win in that. > > > > It should be noted that while Jython is > > an implementation of Python and > > it is a goal that portable code > > between Python and Jython > > (www.anygui.org is example) can be > > written, > > > > it is not a goal that Python code > > written without thinking about Jython > > can be always ported, especially > > for shell-programming-like programs. > > > > Jython is Python for Java as a platform > > and tries to follow the platform philosophy > > without workarounding too much. > > > > So there are tasks for which Python > > is good and Jython not so much, > > changing this is a low priority thingy. > > > > regards, Samuele Pedroni. > > > Ciao Samuele, > > I see this has been asked before already on this list. > Sorry for not checking earlier! But I also see that it > is not impossible to implement chdir and friends in > Java despite its security concerns as the following > should make clear: > > http://www.hio.hen.nl/java/nl/nl/hen/ict/unix/Unix.html > > Needless to say, I'd opt for Jython being more similar > to Python instead of Java, if for no other reason than > the higher similarity of the "Jython" string to "Python" > than to "Java"! ;-) > > Seriously, if it's possible to use chdir-like stuff why > not add it and make both happy, Java people missing it > *and* Python folks reusing their scripts...? Maybe some > Java guys will be more inclined to being dragged over > to Python? > > Dinu > > |
From: <ni...@bi...> - 2002-02-26 09:21:23
|
Hi, I want to use jython to make some calculations in my java program and return a result to my jython program. I am creating an instance of jython interpreter in my java program and calling the interpreter's exec method. It do some computatios and create a set of objects. I have to use this set of objects in my java program. I mean jython interpreter MUST return a set to my java program. However, the exec method returns void value. How can I use jython in my java program so that I can use the values that were calculated in jython directly in my java code ? Thx, a lot. |
From: Dinu G. <gh...@da...> - 2002-02-26 08:02:07
|
Samuele Pedroni <ped...@bl...>: > No this one is not a bug, > chdir is not supported by Jython. > Because it is not supported by Java. > We could workaround > but there is no clear win in that. > > It should be noted that while Jython is > an implementation of Python and > it is a goal that portable code > between Python and Jython > (www.anygui.org is example) can be > written, > > it is not a goal that Python code > written without thinking about Jython > can be always ported, especially > for shell-programming-like programs. > > Jython is Python for Java as a platform > and tries to follow the platform philosophy > without workarounding too much. > > So there are tasks for which Python > is good and Jython not so much, > changing this is a low priority thingy. > > regards, Samuele Pedroni. Ciao Samuele, I see this has been asked before already on this list. Sorry for not checking earlier! But I also see that it is not impossible to implement chdir and friends in Java despite its security concerns as the following should make clear: http://www.hio.hen.nl/java/nl/nl/hen/ict/unix/Unix.html Needless to say, I'd opt for Jython being more similar to Python instead of Java, if for no other reason than the higher similarity of the "Jython" string to "Python" than to "Java"! ;-) Seriously, if it's possible to use chdir-like stuff why not add it and make both happy, Java people missing it *and* Python folks reusing their scripts...? Maybe some Java guys will be more inclined to being dragged over to Python? Dinu |
From: Samuele P. <pe...@in...> - 2002-02-26 02:50:03
|
From: Delaney, Timothy <tde...@av...> > > From: Edward Povazan [mailto:epo...@te...] > > > > Thanks for the explanation. > > I now understand that obj is a String on the java side, but a > > PyString on > > the jython side. > > The reason I was asking is that I create my user interface widgets in > > Jython, which includes many custom controls, and sometimes I > > need to do > > object.toString() which of course fails on a PyString. > > So I need a wrapper around string objects ... a little > > annoying. Oh well. > > If you are doing object.toString() in the Python code, you should instead > use str(object). > True. I can only add that if you subclass a Java class from Jython then you should define both toString and __repr__/__str__, toString for java side and the other to make str work. regards, Samuele Pedroni. |
From: Delaney, T. <tde...@av...> - 2002-02-26 02:21:28
|
> From: Edward Povazan [mailto:epo...@te...] > > Thanks for the explanation. > I now understand that obj is a String on the java side, but a > PyString on > the jython side. > The reason I was asking is that I create my user interface widgets in > Jython, which includes many custom controls, and sometimes I > need to do > object.toString() which of course fails on a PyString. > So I need a wrapper around string objects ... a little > annoying. Oh well. If you are doing object.toString() in the Python code, you should instead use str(object). Tim Delaney |
From: Edward P. <epo...@te...> - 2002-02-26 02:15:15
|
Thanks for the explanation. I now understand that obj is a String on the java side, but a PyString on the jython side. The reason I was asking is that I create my user interface widgets in Jython, which includes many custom controls, and sometimes I need to do object.toString() which of course fails on a PyString. So I need a wrapper around string objects ... a little annoying. Oh well. -Ed |
From: Alexander J. <aj...@gm...> - 2002-02-26 02:00:58
|
Hi, Is it possible to use PyChecker from Jython? If it can't check Java classes, how can I make PyChecker ignore Java packages? I'have played around some with the blacklist PyChecker option but I'm still getting import errors and PyChecker doesn't check my python code. Even if I wrap all Java class access into another python module, PyChecker still complains that it can't find the indirectly imported Java packages and quits without checking anything. Any help would be very much appreciated. Regards, Alexander Jerusalem VKNN |
From: Samuele P. <pe...@in...> - 2002-02-26 00:27:50
|
Maybe you should consider what is really happening and consider just to change your tests: >>> from java import util,lang >>> import Cont >>> c=Cont() >>> c.set("a") >>> c.get() 'a' >>> c.get().__class__ <jclass org.python.core.PyString at 387569> >>> c.check() a of java.lang.String >>> c.set(lang.String("a")) >>> c.get() 'a' >>> c.get().__class__ <jclass org.python.core.PyString at 387569> >>> c.check() a of java.lang.String [this behaviour is very unlikey to change] where Cont is: public class Cont { private Object obj; public void set(Object obj) { this.obj = obj; } public Object get() { return obj; } public void check() { System.out.println(obj + " of " + obj.getClass().getName()); } } So yes a java.lang.String becomes a PyString but also a PyString becomes a java.lang.String when Object is expected. regards, Samuele Pedroni. |
From: ½ºÅ¸Å¬·´ <em...@fi...> - 2002-02-26 00:21:59
|
<BODY><TABLE width=794 bgColor=navy border=1 celpadding="2" cellspace="2"> <TBODY> <TR> <TD> <TABLE width="100%" bgColor=white border=0> <TBODY> <TR> <TD><IMG src="http://211.174.186.143/nfli/nfli-top.gif" border=0> </TD></TR> <TR> <TD><BR><STRONG><FONT color=#ff8040 size=5>21세기의 급격한 변화의 물결</FONT></STRONG><BR>새로운 차원의 부(富)의 이동을 감지 하십시오 <BR><BR>전문직도, 좋은 직장도, 부동산 투자도, 주식투자도,은행이자도 당신과 당신의 가족을 지켜주지 못합니다.<BR>자본도, 위험부담도 없는 제약없는 21세기 현대인의 꿈의 비즈니스가현기증을 느께게 하는 인터넷 전파속도와 함께 질풍처럼 다가옵고 있습니다.<BR><BR>당신의 미래의 모습을 바라보십시오. <BR><BR>(<FONT color=#008000><STRONG>아래를 클릭하면 네크워크 비지니스의 비젼과 사업기회를 동영상으로 직접 감상 할 수 있습니다</STRONG></FONT>.)<BR> <A href="http://ebiz7.net/movie1.htm"><IMG style="WIDTH: 97px; HEIGHT: 90px" height=102 alt="" hspace=0 src="http://nfliclub.co.kr/images/movie.jpg" width=235 align=baseline border=0></A><BR><BR>변화의 물결 속에 황금마차에 오를 기회가 보이십니까? <BR>2002년2월25일 세계적인 네트워크 마케팅회사 뉴트리션 포 라이프(NFLI)가 한국에 상륙했습니다.<BR>이제부터 시작입니다.<BR>분명 누구나 성공할 수 있는 사업(부업), 지금이 적기입니다<BR><BR>여기 <A target=new href="http://www.nfliclub.co.kr"><STRONG><FONT color=#ff8040>www.nfliclub.co.kr</FONT></STRONG></A> 을 찾아주세요 <BR>경제적인 자유, 시간으로부터의 자유, 공동의 성공, 저희 스타클럽이 추구하는 목표입니다. <P></P> <DIV></DIV></TD></TR> <TR> <TD><A onmouseover="Window.status='' ; return true" target=_self href="http://www.nextsoft21.com/Reject_Mail.php?ID=em...@fi..."><IMG height=18 src="http://www.nextsoft21.com/images/Reject_email.JPG" width=100 border=0></A> </TD></TR> <TR> <TD><IMG src="http://211.174.186.143/nfli/nfli-bottom.gif" border=0> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY> |
From: Edward P. <epo...@te...> - 2002-02-25 23:50:38
|
Does Jython change all java.lang.String objects to PyString automatically. I have a JList which may contain any object, as well as String. However in my test cases, all my String objects become PyString after I add the String to the DefaultListModel I am using. If I: class MyString(java.lang.Object): def __init__(self,text): self.__text=text def toString(self): return self.__text then all is well again, but this is extra work I don't need. Any hints? Thanks -Ed |
From: Samuele P. <ped...@bl...> - 2002-02-25 18:23:01
|
No this one is not a bug, chdir is not supported by Jython. Because it is not supported by Java. We could workaround but there is no clear win in that. It should be noted that while Jython is an implementation of Python and it is a goal that portable code between Python and Jython (www.anygui.org is example) can be written, it is not a goal that Python code written without thinking about Jython can be always ported, especially for shell-programming-like programs. Jython is Python for Java as a platform and tries to follow the platform philosophy without workarounding too much. So there are tasks for which Python is good and Jython not so much, changing this is a low priority thingy. regards, Samuele Pedroni. ----- Original Message ----- From: Dinu Gherman <gh...@da...> To: <jyt...@li...> Sent: Monday, February 25, 2002 6:22 PM Subject: [Jython-users] OSError: [Errno 0] chdir not supported in Java? > Hi, > > I'm just starting to use Jython on OS X and run into several > problems, obne of them being this: > > [localhost:~] dinu% jython > Jython 2.1 on java1.3.1 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> import os > >>> os.chdir('..') > Traceback (innermost last): > File "<console>", line 1, in ? > File "/Applications/Additions/Jython-2.1/Lib/javaos.py", line 56, in chdir > OSError: [Errno 0] chdir not supported in Java: .. > >>> > > Any ideas? > > Thanks, > > Dinu > > > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users > |
From: Dinu G. <gh...@da...> - 2002-02-25 17:22:19
|
Hi, I'm just starting to use Jython on OS X and run into several problems, obne of them being this: [localhost:~] dinu% jython Jython 2.1 on java1.3.1 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import os >>> os.chdir('..') Traceback (innermost last): File "<console>", line 1, in ? File "/Applications/Additions/Jython-2.1/Lib/javaos.py", line 56, in chdir OSError: [Errno 0] chdir not supported in Java: .. >>> Any ideas? Thanks, Dinu |
From: Wayne P. <wa...@mi...> - 2002-02-23 04:43:32
|
That was the problem, when I crated the applet I used --jar but not --core and it couldn't find jython.jar . When I used --core and --jar it works fine, I also know what the problem with the JDK plugin was. The site I was visiting (hushmail.com) had an older applet that did not use the new permission and access rules for 1.4. So the plugin was working fine, it was just that every site I visited was using older versions of applets. Thanks for all of your help, Wayne Syver Enstad wrote: > Hi Wayne, could you tell us excactly what you do to make the applet. > > I'm thinking of HTML code, where is the jar file, exactly what > compilation options do you use and so on, I think it would help in > diagnosing your problem. > > A thought, I didn't see that you used the --core switch to jythonc, > this is required if you don't provide jython.jar in the list of > archives in the applet tag in your html code. Btw, the java plugin > works fine on my machine (win2k pro, ie 6, java 1.4) > -- Wayne Pierce web: http://www.mishre.com email: wa...@mi... "What you need to know." |
From: <cl...@cl...> - 2002-02-23 04:21:53
|
<html> <head> <title>=B2=C7=B2=C7=B2=C7=B2=C7=C2=A5!!! =C4=AE=B6=F3=C7=DA=B5=E5=C6=F9=C0= =CC =B2=C7=C2=A5 =2E=2E=2E=2E</title> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Deuc-kr">= </head> <body bgcolor=3D"#ffffff" text=3D"#000000" leftmargin=3D"0" topmargin=3D"0= " marginwidth=3D"0" marginheight=3D"0"> <table width=3D"40" border=3D"0" cellspacing=3D"0" cellpadding=3D"0"> <tr>=20 <td width=3D"48%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_00=2Egif" width=3D"325"= height=3D"164"></td> <td width=3D"5%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_03=2Egif" width=3D"175"= height=3D"164"></td> </tr> <tr>=20 <td width=3D"48%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_01=2Egif" width=3D"325"= height=3D"146"></td> <td width=3D"5%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_06=2Egif" width=3D"176"= height=3D"146"></td> </tr> <tr>=20 <td width=3D"48%" height=3D"140"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_07=2Egif" width=3D"325"= height=3D"153"></td> <td width=3D"5%" height=3D"140"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_09=2Egif" width=3D"176"= height=3D"153"></td> </tr> <tr>=20 <td width=3D"48%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_10=2Egif" width=3D"325"= height=3D"157"></td> <td width=3D"47%"><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_12=2Egif" width=3D"176"= height=3D"157"></td> </tr> <tr>=20 <td width=3D"48%"> </td> <td width=3D"5%"> </td> <td width=3D"47%"> </td> </tr> <tr>=20 <td width=3D"48%"> </td> <td width=3D"5%"><a href=3D"http://www=2Eclickij=2Ecom" target=3D'_bla= nk'><img src=3D"http://www=2Eclickij=2Ecom/mail/img/img3_17_15=2Egif" width=3D"176"= height=3D"30" border=3D0></a></td> <td width=3D"47%"> </td> </tr> <tr>=20 <td width=3D"48%"> </td> <td width=3D"5%"> </td> <td width=3D"47%"> </td> </tr> <tr>=20 <td colspan=3D2>=20 =09<div align=3D"center"><A target=3D_blank href=3D"http://www=2Eclickij=2Ecom/mail/receiver=2Ehtml"><font color=3D"re= d" size=3D"2" face=3D"=B5=B8=BF=F2">=BC=F6=BD=C5=B0=C5=BA=CE</font></A>=20 </div> </td> </tr> </table> </body> </html> |
From: Ben B. <br...@so...> - 2002-02-22 22:39:09
|
Hi, When I tried to recompile and run a Jython example from the website (http://www.jython.org) , it compiled ok, but when I tried to run it all = I got was and error: java.lang.NoClassDefFoundError: org/python/core/PyProxy I know what the error means, I just can=92t for the life of me figure out= how to fix it. If you could help me out, I=92d really appreciate it. The strange thing about this error, is that I can run the applet of the site, but when I copy-n-pasted it into the editor, it didn=92t run. That either means that my computer setup wrong, or the posted source on the si= te is wrong. Thanks in advanced, Ben |
From: Edward P. <epo...@te...> - 2002-02-22 21:40:23
|
Hello, I am curious. Is there a repository of Swing widgets that are implemented in Jython, anywhere on the web? I have written a few, and would like to compare code. -Ed |
From: Tom W. <to...@ss...> - 2002-02-22 14:58:29
|
Ype: > Date: Thu, 21 Feb 2002 20:06:52 +0100 > To: jyt...@li... > From: Ype Kingma <yk...@xs...> > Subject: [Jython-users] Re: newbie trying to convert HelloJava3Da to > jython > > Nothing stops you from using 'this' instead of 'self'. > Using 'self' is only a (widely used) python convention. > Except getting my hand slapped by the local Python guru ;-)) tom -- Tom Whittaker University of Wisconsin-Madison Space Science and Eng. Center ph: 608.262.2759 |