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: <bc...@wo...> - 2001-11-26 20:47:35
|
[Jerome Bouat]
>Hello,
>
>I search a mean to use
>a Python tailored code with Jython.
>I have a problem with strings :
>I must get a 8 bit string for future computation
>but I created 16 bits string.
>
>Does you know a mean
>to make that Jython provides
>a 8 bits strings ?
>Is there a conversion available
>within Jython ?
You can use all the different String.getBytes(..) methods likes this:
>>> import java
>>> java.lang.String.getBytes("abcdef")
array([97, 98, 99, 100, 101, 102], byte)
regards,
finn
|
|
From: Jerome B. <jer...@xr...> - 2001-11-26 18:19:12
|
Hello, I search a mean to use a Python tailored code with Jython. I have a problem with strings : I must get a 8 bit string for future computation but I created 16 bits string. Does you know a mean to make that Jython provides a 8 bits strings ? Is there a conversion available within Jython ? Thanks, Jerome |
|
From: <bc...@wo...> - 2001-11-26 11:22:00
|
[Humbel Otmar] >Here is a sample session, which makes me strongly believe that '.' and >'..' work as expected (I also remember setting the java CLASSPATH to >'.'): > $ > > pwd > /bison/development > > cd .. > $ > > pwd > /bison > $ > > cd ./neighborhood > neighborhood > $ > > pwd > /bison/neighborhood > $ That's far more posix-like than I had guessed. Thanks for the feedback. regards, finn |
|
From: <bc...@wo...> - 2001-11-26 11:18:58
|
[Romain Guy]
> Also is there a way to retrieve the interpreter package managers so that
>I could manually add my JARs to the cache (it would then let me use Jython
>with my app in a webstart release).
[Robert W. Bill]
>sys.add_extdirs(directoryContainingYourJars) is the easy way.
A little typo: it's sys.add_extdir(..).
>For individual jars, you abuse the "public" status of packageManager and
>addJar with the following (untested, sorry):
>
>PySystemState sys = Py.getSystemState();
>sys.packageManager.addJar("/usr/local/jakarta-tomcat-3.2.3/lib/parser.jar");
The addJar() will not cache the result. And, yes it is a bit of an abuse
because packagemanager methods is not part of the stable public API.
If there is a wish for this, we should add another method to sys:
sys.add_jar("/path/to/file.jar")
Can anyone come up with a better name since the .jar can also be a .zip
file?
regards,
finn
|
|
From: <bc...@wo...> - 2001-11-26 08:32:44
|
[Samuele] >It works under win9x: One yea, zero nays. I'll add it to the .bat template. That's what beta releases are for, right? regards, finn |
|
From: Robert W. B. <rb...@di...> - 2001-11-25 19:17:32
|
On Sun, 25 Nov 2001, Romain Guy wrote:
> Is there a way to tell the Python interpreter where to put its cache
> directory (I'd like to do something like this :
> interpreter.setCacheDir(System.getProperty("user.home") + "/myApp");
The property is "python.cachedir", and you can set it in the call to
PythonInterpreter's initialize method. Jython's registry file explains the
python.cachedir property.
Properties props = new Properties();
props.put("python.home", "/path/to/jython");
props.put("python.cachedir", "/path/to/cachedir");
PythonInterpreter.initialize(System.getProperties(),
props, new String[0]);
> Also is there a way to retrieve the interpreter package managers so that
> I could manually add my JARs to the cache (it would then let me use Jython
> with my app in a webstart release).
sys.add_extdirs(directoryContainingYourJars) is the easy way.
For individual jars, you abuse the "public" status of packageManager and
addJar with the following (untested, sorry):
PySystemState sys = Py.getSystemState();
sys.packageManager.addJar("/usr/local/jakarta-tomcat-3.2.3/lib/parser.jar");
-robert
|
|
From: Romain G. <rom...@je...> - 2001-11-25 11:24:59
|
Is there a way to tell the Python interpreter where to put its cache
directory (I'd like to do something like this :
interpreter.setCacheDir(System.getProperty("user.home") + "/myApp");
Also is there a way to retrieve the interpreter package managers so that
I could manually add my JARs to the cache (it would then let me use Jython
with my app in a webstart release).
Romain "Java Swinguer !" Guy
rom...@je...
www.jext.org
"Now, don't you worry. The saucers are up there. The graveyard is out there.
But I'll be locked up safely in there."
- Paula Trent, Plan 9 From Outer Space
|
|
From: <bri...@ma...> - 2001-11-24 02:45:19
|
Dear developers, I have checked the user forums and FAQs but, perhaps due to my own incompetence, I have not found an explanation to overcome a serious problem I have encountered using Jython 2.2 on Mac OSX 10.1.1. Each time I launch Jython, Jython reads in the jars in the classpath and tries, unsuccessfully, to cache them (somewhere I do not know). Because of this failure, each time I launch Jython it tries again in vain to cache the jars polluting standard out with its failures and corrupting the return values to Applescript when I launch Jython using a Shell OSAX ( DLL that allows Applescirpt to execute Unix shell commands and read their returns). I find this very frustrating since I use Jython to give Applescript a GUI interface that is both easy to use and quasi-standard in that it is Java Swing. I have provided the output below to aid you if it helps. I would appreciate any advice you could give to tell me where the jars are cached since I believe it is a permissions problem that prevents them from being effectively cached. Or perhaps you have another idea? Regards, Daniel Lord [localhost:/Users/daniello/bin] root# jython1 jython1.py *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Java/Extensions/CoreAudio.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Java/Extensions/CoreAudio.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Java/Extensions/QTJava.zip' *sys-package-mgr*: can't write cache file for '/System/Library/Java/Extensions/QTJava.zip' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse. jar' |
|
From: <bri...@ma...> - 2001-11-24 01:49:49
|
Each time I run Jython, I receive errors as Jython tries to cache every single jar file (elaborated below). The problem is that ,since these files are never cached, the launch of Jython is delayed each time as Jython each launch attempts to cache them and fills standard out with the chronology of the attempts. Even worse, if I launch Jython from a command string in Applescript which I often do, I must filter out all the these errors on the return string in order to get to the information returned by Jython. Since I use Jython as a GUI in OSX because it supports Java 2 natively in OSX as opposed to Python TK which requires hacks to run X Windows, I find this very disappointing. I have tried to figure out where Jython is attempting to cache these interpreted jars so that I might change permissions which might be hindering this, but I have not been successful. Do you have any hints you can pass on to me? A search of the user groups has yielded nothing on this subject. Here are the errors: *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/classes. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/ui.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/i18n.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Classes/sunrsasign. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Java/Extensions/CoreAudio.jar' *sys-package-mgr*: can't write cache file for '/System/Library/Java/Extensions/CoreAudio.jar' *sys-package-mgr*: processing modified jar, '/System/Library/Java/Extensions/QTJava.zip' *sys-package-mgr*: can't write cache file for '/System/Library/Java/Extensions/QTJava.zip' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jcert. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jnet. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jpda. jar' *sys-package-mgr*: processing modified jar, '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse. jar' *sys-package-mgr*: can't write cache file for '/System/Library/Frameworks/JavaVM.framework/Versions/1.3.1/Home/lib/ext/jsse. jar' |
|
From: <sp...@is...> - 2001-11-23 09:50:06
|
Hi all, I have already sent some mail, but sadly got no answer... There is a=20 really strange problem that I have to solve very quickly: I want to=20 extend a class that I have written, which is=20 net.sourceforge.spedit.ui.AttributesDisplay. To do so I import the=20 net.sourceforge.spedit.ui package. When I do a dir(net.sourceforge.spedit.ui) it lists me AttributesDisplay=20= and the other classes which are in the package. The problem occurs when=20= it comes to accessing this class. When I do a print=20 net.sourceforge.spedit.ui. AttributesDisplay jython says=20 "AttributeError: java package 'net.sourceforge.spedit.ui' has no=20 attribute 'AttributesDisplay'" which is obviously false. I don't understand what is happening... Please help, -- S=E9bastien. PS: I'm using jython2.1a3 |
|
From: Bhavani <bha...@sy...> - 2001-11-23 09:12:28
|
Here I am making use of BioPython Api to fetch the Gene details
thro NCBI Database server. If it is in Python environment it works
fine. But If I convert that Python class to Java class using the
Jython tool and try to run java (python) class it is throwing an
exception
Exception details are below:
---------------------------------------
Error in GeneSearch
Java Traceback:
at org.python.core.Py.ImportError(Py.java)
at org.python.core.imp.importFromAs(Compiled Code)
at org.python.core.imp.importFrom(imp.java)
at GeneSearch$_PyInner.main$4(GeneSearch.java:169)
at GeneSearch$_PyInner.call_function(GeneSearch.java:58)
at org.python.core.PyTableCode.call(Compiled Code)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.imp.createFromCode(imp.java)
at org.python.core.Py.initProxy(Compiled Code)
at GeneSearch.__initProxy__(GeneSearch.java:227)
at GeneSearch.<init>(GeneSearch.java:205)
at GeneSearchTest.main(Compiled Code)
Traceback (innermost last):
File "D:\jython2.1\SampleProj\GeneSearch.py", line 0, in main
ImportError: cannot import name GenBank
***** Here GenBank is present in Biopython API and is going to
installed seperately into python directory after installing python
I have installed the Biopython api in the Lib direcotry of python
and even updated the python.path to point to the respective
directory both in registry file of jython as well as the environmental
settings
Can you suggest me what are other settings I have to make to
make use of BioPython along with Jython
K.B.Bhavani
SysArris Software
Bangalore-India
Tel. No. 91-80-6654965,6655165
Fax No. 91-80-6650374
http://www.sysarris.com/
|
|
From: <Jd...@ao...> - 2001-11-23 08:15:59
|
Hello, I am trying to run a free internet raffle web site and need help figuring out weather or not there are free scripts avaible on the internet that will help me do this or will I have to pay someone? Here's how I would like to run the free internet raffle. You come to my web site after seeing an ad on an internet classified site here's how the front page reads: Welcome to the free internet raffle. This months first prize is: (descripiton of prize.) All you have to do to enter is click on one of the banners below. You will be taken to that sponsors web site, then while your being taken to that web page a pop-up window will appear in the upper right hand corner. In it will be your entry form. Please fill out all feilds completely. Once you have filled out the form your by clicking on the submit button, ticket number will appear in that window please write it down for your records. Then at the end of the month one number will be choosen to win the prize. That's how I would like to io run. It would be even better if a confirmation of the entry were could be sent to myself and the person entering the raffle. But this is what I a trying to do. I was told by another webmaster that it might be a combination of PHP and java(scripts.) Well, if you can tell me what scripts they are I'd appreciate it. Thanks, Damon Smith |
|
From: Humbel O. <Otm...@bi...> - 2001-11-22 14:40:17
|
[ Kevin Butler ] > The particular items that Finn was wondering about for AS/400 are the=20 > 'current directory' and 'parent directory' strings (in=20 > Unix/dos they are=20 > '.' and '..', respectively). Do you know those strings? More below. Here is a sample session, which makes me strongly believe that '.' and '..' work as expected (I also remember setting the java CLASSPATH to '.'): $ > pwd /bison/development > cd .. $ > pwd /bison $ > cd ./neighborhood neighborhood $ > pwd /bison/neighborhood $ For the rest below (snipped my original questions), I need a little more time...=20 Thank you for the tips and best wishes, Oti. > The most recent non-cvs snaphot release is 2.1a3, and that=20 > should work=20 > fine (it is what I've been using). Not sure about .1a2 and older. > There is a (rather poorly factored) __test() method, and=20 > basically, if=20 > it didn't throw an exception, it mostly worked. :-) However, it=20 > executes several 'system' commands and it really only looks=20 > at the first=20 > line of output, and doesn't check that very well... You can check=20 > visually as it prints the command it is executing, and you can see if=20 > the output makes sense for that command... (yuck) >=20 > I would expect it to fail pretty miserably on AS400 right now (and=20 > Macintosh, if anyone out there is interested in getting it=20 > working for=20 > Mac), because it only knows to execute commands with 'cmd /c=20 > COMMAND' or=20 > 'command.com /c COMMAND' or 'sh -c COMMAND', so on Mac we=20 > don't get any=20 > system/environment functionality, and on AS400 it will likely try to=20 > work like Unix, and fail. >=20 > javaos.py needs the following information for a new platform=20 > (and if you=20 > can give some earlier items w/o the later items, it can give partial=20 > functionality): >=20 > 1- how to recognize the new platform, that is, what=20 > System.getProperty(=20 > "os.name" ) returns and any variations on it, and an internal=20 > name for=20 > the platform (as400?). This is used to determine which values=20 > are used=20 > for the following items. > 2- os.curdir, os.pardir need current directory and parent directory=20 > strings ('.', and '..', respectively). > 3- os.system needs the command to "execute a command in a=20 > shell" ('sh -c'). > 4- os.environ needs os.system and the command to print out the=20 > environment as "name=3Dvalue" pairs. Also, needs to know if the=20 > environment variable names are case sensitive (unix) or=20 > insensitive (dos). >=20 > ... which reminds me that we can provide 'os.system' even if we can't=20 > get environment variables, which isn't supported by the current=20 > _ShellEnv/_NullEnv factoring... >=20 > I need to fix the default behavior - I don't think the=20 > CPython behavior=20 > (import error if no os-specific module available) is right=20 > for Jython. I=20 > think I'll convert back to the original "empty environment" as the=20 > fallback - though the additional testing/feedback provided by=20 > having it=20 > enabled is nice! :-) |
|
From: Samuele P. <ped...@bl...> - 2001-11-22 11:48:30
|
> Hi, > > Michael Becke have posted an alternative to the current 9 argument limit > in jython.bat > > > http://sourceforge.net/tracker/index.php?func=detail&aid=484181&group_id=12867& atid=112867 > > Look for the attached file. > > Could win9x and XP users please try it out and see it it works on those > platforms as well. > It works under win9x: C:\transit>jython x.py "0 2" "a ""b""" ['x.py', '0 2', 'a "b"'] Samuele. Samuele. |
|
From: <bc...@wo...> - 2001-11-22 11:17:31
|
Hi, Michael Becke have posted an alternative to the current 9 argument limit in jython.bat > http://sourceforge.net/tracker/index.php?func=detail&aid=484181&group_id=12867&atid=112867 Look for the attached file. Could win9x and XP users please try it out and see it it works on those platforms as well. regards, finn |
|
From: <bc...@wo...> - 2001-11-22 09:56:43
|
[Jeffrey Drake] >After trying to compile the code at the end of this message, I get an >error: > >Compiling .java to .class... >Compiling with args: ['C:\\Program >Files\\JavaSoft\\JRE\\1.3.1\\bin\\javac', This indicate that jython was installed with the JRE, not the JDK. A common problem because javasoft creates a c:\winnt\system32\java.exe that points to the JRE when installing the JDK. The easiest way to fix it is to re-install jython by giving the full path to the correct JDK java.exe: C:\jdk1.3.1_01\bin\java.exe -cp . jython-21a3 >--- >This program works fine (won't actually run because of applet, but >doesn't give errors). > >BTW, How do I reproduce the static main? > >This program is sun's jdk1.3.1_01 on win2k. This uses Java3D. So the java support in the browser must support Java3D. I just want to point out that the applet can't run with the default java support in IE and netscape. regards, finn |
|
From: Jeffrey D. <jp...@ho...> - 2001-11-22 08:21:44
|
After trying to compile the code at the end of this message, I get an
error:
Compiling .java to .class...
Compiling with args: ['C:\\Program
Files\\JavaSoft\\JRE\\1.3.1\\bin\\javac', '-c
lasspath',
'C:\\jdk1.3.1_01\\jython\\jython.jar;C:\\jdk1.3.1_01\\jython;.\\jpywo
rk;;C:\\jdk1.3.1_01\\jython\\Tools\\jythonc;C:\\jdk1.3.1_01\\jython\\.;C
:\\jdk1.
3.1_01\\jython\\Lib;C:\\jdk1.3.1_01\\jython',
'.\\jpywork\\HelloUniverse.java']
1 java.io.IOException: CreateProcess: "C:\Program
Files\JavaSoft\JRE\1.3.1\bin\
javac" -classpath
C:\jdk1.3.1_01\jython\jython.jar;C:\jdk1.3.1_01\jython;.\jpywo
rk;;C:\jdk1.3.1_01\jython\Tools\jythonc;C:\jdk1.3.1_01\jython\.;C:\jdk1.
3.1_01\j
ython\Lib;C:\jdk1.3.1_01\jython .\jpywork\HelloUniverse.java error=2
Consider using the -C/--compiler command line switch, or setting
the property python.jythonc.compiler in the registry.
ERROR DURING JAVA COMPILATION... EXITING
---
This program works fine (won't actually run because of applet, but
doesn't give errors).
BTW, How do I reproduce the static main?
This program is sun's jdk1.3.1_01 on win2k. This uses Java3D.
Any help would be appreciated.
Regards,
Jeffrey Drake
---
from java.applet import Applet
from java.awt.BorderLayout import *
from java.awt.event import *
from java.awt.GraphicsConfiguration import *
from com.sun.j3d.utils.applet.MainFrame import *
from com.sun.j3d.utils.geometry import ColorCube
from com.sun.j3d.utils.universe import *
from javax.media.j3d import *
from javax.vecmath import *
class HelloUniverse(Applet):
def CreateSceneGraph(self):
objRoot = BranchGroup()
objTrans = TransformGroup()
objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE)
objRoot.addChild(objTrans)
objTrans.addChild(ColorCube(0.4))
yAxis = Transform3D()
rotationAlpha = Alpha(-1, 4000)
rotator = RotationInterpolator(rotationAlpha, objTrans,
yAxis, 0.0, math.acos(-1) * 2.0)
bounds = BoundingSphere(Point3d(0, 0, 0), 100)
rotator.setSchedulingBounds(bounds)
objRoot.addChild(rotator)
objRoot.compile()
return objRoot
def __init__(self):
pass
def init(self):
global u
setLayout(BorderLayout())
config = SimpleUniverse.getPreferredConfiguration()
c = Canvas3D(config)
add("Center", c)
scene = createSceneGraph()
u = SimpleUniverse(c)
u.getViewingPlatform().setNominalViewingTransform()
u.addBranchGraph(scene)
def __del__(self):
global u
u.removeAllLocales()
|
|
From: <Fre...@ya...> - 2001-11-22 07:39:02
|
Dear jyt...@li...,
***********************************************************
Would you like to send an Email Advertisement to
OVER 11 MILLION PEOPLE DAILY for FREE?
***********************************************************
Do you have a product or service to sell?
Do you want an extra 100 orders per week?
NOTE: (If you do not already have a product or service to sell, we can
supply you with one).
=========================================================
1) Let's say you... Sell a $24.95 PRODUCT or SERVICE.
2) Let's say you... Broadcast Email to only 500,000 PEOPLE.
3) Let's say you... Receive JUST 1 ORDER for EVERY 2,500 EMAILS.
CALCULATION OF YOUR EARNINGS BASED ON THE ABOVE STATISTICS:
[Day 1]: $4,990 [Week 1]: $34,930 [Month 1]: $139,720
========================================================
To find out more information, Do not respond by email. Instead, Please
visit our web site at:
http://www.bigcashtoday.com/package1.htm
List Removal Instructions:
We hope you enjoyed receiving this message. However, if you'd rather
not receive future e-mails of this sort from Internet Specialists, send an
email to fre...@ex... and type "remove" in the
"subject" line and you will be removed from any future mailings.
We hope you have a great day!
Internet Specialists
|
|
From: Kevin B. <kb...@ca...> - 2001-11-21 19:18:57
|
Humbel Otmar wrote: >I am willing to give the new javaos.py a try on eServer iSeries >(formerly AS/400) during the next 2 weeks, but I am feeling kinda newbie >concerning the os module. > Great! The particular items that Finn was wondering about for AS/400 are the 'current directory' and 'parent directory' strings (in Unix/dos they are '.' and '..', respectively). Do you know those strings? More below. > >Therefore two questions: > >1. >Can I take the released 2.1a2 version and just replace javaos.py, or do >I have to build the current cvs snapshot ? > The most recent non-cvs snaphot release is 2.1a3, and that should work fine (it is what I've been using). Not sure about .1a2 and older. > >2. >What kind of tests are you interested in mostly ? >Are there any automated tests (I remember reading something about >__test() but haven't any clue how to use it). > There is a (rather poorly factored) __test() method, and basically, if it didn't throw an exception, it mostly worked. :-) However, it executes several 'system' commands and it really only looks at the first line of output, and doesn't check that very well... You can check visually as it prints the command it is executing, and you can see if the output makes sense for that command... (yuck) I would expect it to fail pretty miserably on AS400 right now (and Macintosh, if anyone out there is interested in getting it working for Mac), because it only knows to execute commands with 'cmd /c COMMAND' or 'command.com /c COMMAND' or 'sh -c COMMAND', so on Mac we don't get any system/environment functionality, and on AS400 it will likely try to work like Unix, and fail. javaos.py needs the following information for a new platform (and if you can give some earlier items w/o the later items, it can give partial functionality): 1- how to recognize the new platform, that is, what System.getProperty( "os.name" ) returns and any variations on it, and an internal name for the platform (as400?). This is used to determine which values are used for the following items. 2- os.curdir, os.pardir need current directory and parent directory strings ('.', and '..', respectively). 3- os.system needs the command to "execute a command in a shell" ('sh -c'). 4- os.environ needs os.system and the command to print out the environment as "name=value" pairs. Also, needs to know if the environment variable names are case sensitive (unix) or insensitive (dos). ... which reminds me that we can provide 'os.system' even if we can't get environment variables, which isn't supported by the current _ShellEnv/_NullEnv factoring... I need to fix the default behavior - I don't think the CPython behavior (import error if no os-specific module available) is right for Jython. I think I'll convert back to the original "empty environment" as the fallback - though the additional testing/feedback provided by having it enabled is nice! :-) kb |
|
From: Alicia Mc M. <mad...@ya...> - 2001-11-21 16:42:19
|
hi, I am in real need of a jython tutorial..Can you help cheers Alicia --------------------------------- Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. |
|
From: Ben B. <be...@ac...> - 2001-11-21 16:22:34
|
> > Yes, unless the import is performed when a module in Python-211/Lib is > > used as a script. SimpleHTTPServer.py is such a module that can also be > > started as a command line script. Then the Python-211/Lib directory is > > first in sys.path and an import of socket.py will pick up the socket.py > > from Python-211/lib. I think there is another example, but I have forgot > > which. > > Hmm, I see (having just reproduced the error on my debian box). > > Though wouldn't this error still occur even if the standard jython > installation method were used (all files duplicated in jython/Lib, no > CPython directories on the python path at all)? I assume the problem is > that the directory containing the script is placed first in sys.path, and I > don't see how using the standard jython installation method will get around > this. Oh, duh. The SimpleHTTPServer.py script would be called directly from jython/Lib, not from CPython/Lib. Never mind. :) Ben. -- Ben Burton be...@ac... | ba...@de... http://baasil.humbug.org.au/bab/ Public Key: finger ba...@de... A cigarette is the perfect type of a perfect pleasure. It is exquisite, and it leaves one unsatisfied. What more can one want? - Oscar Wilde |
|
From: Humbel O. <Otm...@bi...> - 2001-11-21 07:39:51
|
[ Finn Bock ] <snip> > Thats why I haven't touched added this feature myself. It is=20 > so easy to > get working for oneself but so hard to get it working=20 > correctly for all. <snip> > You think that is right on macs and AS/400? Maybe it actually=20 > is, but I > doubt it. I liked the old defensive comment. >=20 > >! except UnboundLocalError: > >! # 'value' is unbound because we didn't find=20 > '=3D' on first line <snip> I am willing to give the new javaos.py a try on eServer iSeries (formerly AS/400) during the next 2 weeks, but I am feeling kinda newbie concerning the os module. Therefore two questions: 1.=20 Can I take the released 2.1a2 version and just replace javaos.py, or do I have to build the current cvs snapshot ? 2. What kind of tests are you interested in mostly ? Are there any automated tests (I remember reading something about __test() but haven't any clue how to use it). Thank you for any hints. Oti. |
|
From: Ben B. <be...@ac...> - 2001-11-21 01:33:38
|
> >I should add that socket.py is one of the modules that *is* included in > >debian jython's Lib/ directory (see Kevin's list), so AFAIU jython should > >pick up the correct socket.py. > > Yes, unless the import is performed when a module in Python-211/Lib is > used as a script. SimpleHTTPServer.py is such a module that can also be > started as a command line script. Then the Python-211/Lib directory is > first in sys.path and an import of socket.py will pick up the socket.py > from Python-211/lib. I think there is another example, but I have forgot > which. Hmm, I see (having just reproduced the error on my debian box). Though wouldn't this error still occur even if the standard jython installation method were used (all files duplicated in jython/Lib, no CPython directories on the python path at all)? I assume the problem is that the directory containing the script is placed first in sys.path, and I don't see how using the standard jython installation method will get around this. Perhaps I'm missing something..? Ben. -- Ben Burton be...@ac... | ba...@de... http://baasil.humbug.org.au/bab/ Public Key: finger ba...@de... A man who does not think for himself does not think at all. - Oscar Wilde |
|
From: <bc...@wo...> - 2001-11-20 23:06:12
|
[Ben Burton] >The procedure currently used by the debian package is: > >- Have a python path that places jython's Lib/ before the CPython directory; >- Only duplicate modules that require jython-specific patches, and place >these patches in jython's Lib/ That is exactly how I run from CVS and how I manage the CPython modules in jython's CVS. Except for the problem with socket.py, it is a good scheme. >Is this doomed to failure, No. A bit too fragile for my taste, but if debian have a good dependency system it may work for you. In 2.1b1 we will also include a sizeable part of the modules from PyXML http://sourceforge.net/projects/pyxml in the installer. A little twist on the PyXML support is that some of the non-supported drivers must *not* be included in order to complete part of the PyXML test suite. regards, finn |
|
From: <bc...@wo...> - 2001-11-20 22:43:49
|
> - Depending completely on modules from CPython is also wrong. One of the > problems is the socket modules that gets imported by other modules from > Lib. Running the SimpleHTTPServer script f.ex will pick up the socket.py > from CPython and that can't work with Jython. [Ben Burton] >I should add that socket.py is one of the modules that *is* included in >debian jython's Lib/ directory (see Kevin's list), so AFAIU jython should >pick up the correct socket.py. Yes, unless the import is performed when a module in Python-211/Lib is used as a script. SimpleHTTPServer.py is such a module that can also be started as a command line script. Then the Python-211/Lib directory is first in sys.path and an import of socket.py will pick up the socket.py from Python-211/lib. I think there is another example, but I have forgot which. regards, finn |