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: Antonio <an...@pu...> - 2001-09-17 17:29:11
|
I'm trying to learn something about Jython and Python, but I find very difficult to find a manual to download (All the manuals are on-line). Can you help me? thanks Antonio Bosque Ingeniero de desarrollo de AdMotion S.L. |
|
From: Samuele P. <pe...@in...> - 2001-09-17 16:41:25
|
Yes, it's a bug. Don't how complex is to fix, in any case is from a part of JPython that we haven't touched and which is quite fragile. Please submit a bug report to SF, if you haven't do so yet. Thanks, Samuele Pedroni. > From: "Kevin Dangoor" <kda...@we...> > To: <jyt...@li...> > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > Subject: [Jython-dev] bug: calling a builtin method as a class variable > X-BeenThere: jyt...@li... > X-Mailman-Version: 2.0.5 > List-Help: <mailto:jyt...@li...?subject=help> > List-Post: <mailto:jyt...@li...> > List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/jython-dev>, <mailto:jyt...@li...?subject=subscribe> > List-Id: <jython-dev.lists.sourceforge.net> > List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/jython-dev>, <mailto:jyt...@li...?subject=unsubscribe> > List-Archive: <https://lists.sourceforge.net/archives//jython-dev/> > X-Original-Date: Mon, 17 Sep 2001 12:08:55 -0400 > Date: Mon, 17 Sep 2001 12:08:55 -0400 > > This has a simple test case, but I'm not sure that the solution is simple. > > Jython 2.1a3 on java1.3.0 (JIT: null) > Type "copyright", "credits" or "license" for more information. > >>> class Foo: > ... mylistIndex = ['a', 'b', 'c', 'd', 'e'].index > ... > >>> a = Foo() > >>> a.mylistIndex > <builtin method 'index'> > >>> a.mylistIndex('c') > Traceback (innermost last): > File "<console>", line 1, in ? > TypeError: index(): expected 1 args; got 2 > >>> > >>> Foo.mylistIndex('c') > Traceback (innermost last): > File "<console>", line 1, in ? > java.lang.NullPointerException > at org.python.core.ListFunctions.__call__(PyList.java) > at org.python.core.PyObject.invoke(PyObject.java) > at org.python.pycode._pyx2.f$0(<console>:1) > at org.python.pycode._pyx2.call_function(<console>) > at org.python.core.PyTableCode.call(PyTableCode.java) > at org.python.core.PyCode.call(PyCode.java) > at org.python.core.Py.runCode(Py.java) > at org.python.core.Py.exec(Py.java) > at org.python.util.PythonInterpreter.exec(PythonInterpreter.java) > at > org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter > .java) > at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java) > at > org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret > er.java) > at org.python.util.InteractiveConsole.push(InteractiveConsole.java) > at > org.python.util.InteractiveConsole.interact(InteractiveConsole.java) > at org.python.util.jython.main(jython.java) > > java.lang.NullPointerException: java.lang.NullPointerException > > > For reference, CPython doesn't choke on this: > > Python 2.1 (#1, Apr 17 2001, 09:45:01) > [GCC 2.95.3-2 (cygwin special)] on cygwin_nt-4.01 > Type "copyright", "credits" or "license" for more information. > >>> class Foo: > ... mylistIndex = ['a', 'b', 'c', 'd', 'e'].index > ... > >>> a = Foo() > >>> a.mylistIndex > <built-in method index of list object at 0xa04da34> > >>> a.mylistIndex('c') > 2 > >>> > > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Kevin D. <kda...@we...> - 2001-09-17 16:09:18
|
This has a simple test case, but I'm not sure that the solution is simple.
Jython 2.1a3 on java1.3.0 (JIT: null)
Type "copyright", "credits" or "license" for more information.
>>> class Foo:
... mylistIndex = ['a', 'b', 'c', 'd', 'e'].index
...
>>> a = Foo()
>>> a.mylistIndex
<builtin method 'index'>
>>> a.mylistIndex('c')
Traceback (innermost last):
File "<console>", line 1, in ?
TypeError: index(): expected 1 args; got 2
>>>
>>> Foo.mylistIndex('c')
Traceback (innermost last):
File "<console>", line 1, in ?
java.lang.NullPointerException
at org.python.core.ListFunctions.__call__(PyList.java)
at org.python.core.PyObject.invoke(PyObject.java)
at org.python.pycode._pyx2.f$0(<console>:1)
at org.python.pycode._pyx2.call_function(<console>)
at org.python.core.PyTableCode.call(PyTableCode.java)
at org.python.core.PyCode.call(PyCode.java)
at org.python.core.Py.runCode(Py.java)
at org.python.core.Py.exec(Py.java)
at org.python.util.PythonInterpreter.exec(PythonInterpreter.java)
at
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter
.java)
at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
er.java)
at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpret
er.java)
at org.python.util.InteractiveConsole.push(InteractiveConsole.java)
at
org.python.util.InteractiveConsole.interact(InteractiveConsole.java)
at org.python.util.jython.main(jython.java)
java.lang.NullPointerException: java.lang.NullPointerException
For reference, CPython doesn't choke on this:
Python 2.1 (#1, Apr 17 2001, 09:45:01)
[GCC 2.95.3-2 (cygwin special)] on cygwin_nt-4.01
Type "copyright", "credits" or "license" for more information.
>>> class Foo:
... mylistIndex = ['a', 'b', 'c', 'd', 'e'].index
...
>>> a = Foo()
>>> a.mylistIndex
<built-in method index of list object at 0xa04da34>
>>> a.mylistIndex('c')
2
>>>
|
|
From: Phil S. <phi...@ho...> - 2001-09-17 03:49:35
|
I've often wanted to be able to distribute jython + standard modules in
a single jar. In order to do this, you need to be able to load .py files
from the classpath.
After poking through the jython code, I found that this patch to
org/jython/core/imp.java in jython-2.1a3 does the trick:
imp.java
498a499,502
> //if it's not a builtin or in the python path, try the classpath
> ret = loadFromClassLoader(name, imp.class.getClassLoader());
> if (ret != null) return ret;
>
to put this into context:
private static PyObject load(String name, PyList path) {
PyObject ret = loadBuiltin(name, path);
if (ret != null) return ret;
ret = loadFromPath(name, path);
if (ret != null) return ret;
> //if it's not a builtin or in the python path, try the classpath
> ret = loadFromClassLoader(name, imp.class.getClassLoader());
> if (ret != null) return ret;
>
Now if you add all the modules into jython.jar and monkey with the
manifest (I have an ant build file that does this), you can type java
-jar jython.jar and you will get the interpreter and be able to import
all the standard modules. No need for any installation, environment
variables, registry, or anything. You do end up with multiple cachedirs
if you invoke the jar from different directories but in many cases I
would not expect this to be an issue.
Hopefully one of you will be able to determine if the patch will have
some bad side effects. Note that entries in python.path should override
entries in the classpath.
Does anyone else think this would be a good thing to add to jython? It
makes it easier to bundle jython with Ant, put it into source code
control repositories, and easier to install when you don't need the
registry.
|
|
From: Ype K. <yk...@xs...> - 2001-09-15 10:33:42
|
Alexandre There's also: http://www.cs.berkeley.edu/~mdw/proj/java-nbio/ >Alexandre, > >I think the java telnet application is your best option: > >http://www.mud.de/se/jta/ > >Java 1.4 has asynchronous I/O, and there is also a java package >to emulate select() in an OO way, but I cannot remember it's name. >You might check the archives of jython-dev and jython-users. > >Ype > >>Hi, >> >>I tried to run a sample by using telnetlib but I couldn't because >>"select" is missing. >>Is it possible to use the "select()" in C Unix Library, wrap it >>with a java code, and use it in telnetlib? >>Besides that, Jython is really cool. >> >>Thanks. >> >> >>Get your FREE download of MSN Explorer at >><http://go.msn.com/bql/hmtag_itl_EN.asp>http://explorer.msn.com >>_______________________________________________ Jython-dev mailing >>list Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Alexandre Z. <az...@ho...> - 2001-09-15 04:04:50
|
<html><div style='background-color:'><DIV>Hi,</DIV> <DIV> </DIV> <DIV>I tried to run a sample by using telnetlib but I couldn't because "select" is missing.</DIV> <DIV>Is it possible to use the "select()" in C Unix Library, wrap it with a java code, and use it in telnetlib?</DIV> <DIV>Besides that, Jython is really cool.</DIV> <DIV> </DIV> <DIV>Thanks.</DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Kevin D. <kda...@we...> - 2001-09-14 19:47:58
|
> > Zope places some security restrictions on the code that is submitted through > > a web browser. Any method or variable that is not meant to be accessed by > > someone doing through the web development starts with an "_". So, they use > > co_names in a number of places to look for variable/method references that > > begin with "_". > > > > This is the mechanism that prevents people from being able to alter their > > own security characteristics or access arbitrary Zope objects. > > > I see, yes that way can work in jython too, if you have control > over compilation of code, ot the other hand the possible access to Java > code enters in the equation(?) We'll definitely have to look at other security implications that come up as a result of using Java/Jython. I believe that Zope restricts which modules may be imported by through-the-web code. If that's the case, we can restrict access to the Jython Java classes so that people can't circumvent the Jython-level security used by Zope. Kevin |
|
From: Samuele P. <pe...@in...> - 2001-09-14 19:34:32
|
> From: "Kevin Dangoor" <kda...@we...> > To: "Samuele Pedroni" <pe...@in...>, <jyt...@li...> > Subject: Re: [Jython-dev] co_names > Date: Fri, 14 Sep 2001 15:27:34 -0400 > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > > Hi, Samuele > > > If what you need is just co_names (although I don't get why and > > how is that used/necessary) you should start looking at > > org.python.compiler.CodeCompiler,... > > and the functions to construct code in org.python.core.Py > > OK... I'll look in that area. The code is a bit convoluted, so don't hesitate if you have questions. > > > > It's just boring, and you should roughly get how the compiler works > > but it is not difficult. > > > > To be honest jython does support co_names because it is not necessary, > > in CPython co_names contains complementary info needed by the bytecode. > > > > Even inspect.py does not use it. In any case if the use of co_names is > > related to security adding it to jython is not that useful, because > > potentially forged java bytecode could be delivered together with an > > irrelevant co_names. > > Zope places some security restrictions on the code that is submitted through > a web browser. Any method or variable that is not meant to be accessed by > someone doing through the web development starts with an "_". So, they use > co_names in a number of places to look for variable/method references that > begin with "_". > > This is the mechanism that prevents people from being able to alter their > own security characteristics or access arbitrary Zope objects. > I see, yes that way can work in jython too, if you have control over compilation of code, ot the other hand the possible access to Java code enters in the equation(?) regards. |
|
From: Kevin D. <kda...@we...> - 2001-09-14 19:28:08
|
Hi, Samuele > If what you need is just co_names (although I don't get why and > how is that used/necessary) you should start looking at > org.python.compiler.CodeCompiler,... > and the functions to construct code in org.python.core.Py OK... I'll look in that area. > > It's just boring, and you should roughly get how the compiler works > but it is not difficult. > > To be honest jython does support co_names because it is not necessary, > in CPython co_names contains complementary info needed by the bytecode. > > Even inspect.py does not use it. In any case if the use of co_names is > related to security adding it to jython is not that useful, because > potentially forged java bytecode could be delivered together with an > irrelevant co_names. Zope places some security restrictions on the code that is submitted through a web browser. Any method or variable that is not meant to be accessed by someone doing through the web development starts with an "_". So, they use co_names in a number of places to look for variable/method references that begin with "_". This is the mechanism that prevents people from being able to alter their own security characteristics or access arbitrary Zope objects. Kevin |
|
From: Ed P. -S. N. S. D. <epe...@ea...> - 2001-09-14 19:12:04
|
Hi,
I'm trying to execute a Junit framework test using java reflection for
test
method invocation. I see an error when running the following test a
Solaris 5.8 platform,
with JDK 1.3.1, jython 2.1.a1, and junit 3.7. The test runs successfully
on a Windows 2000
platform with the same versions of JDK, jython, and junit.
I'm curious why I'm seeing a difference.
------------ MathTest test --------------
class MathTest(TestCase):
def __init__(self,name):
self.fvalue1=2.0
self.fvalue2=3.0
TestCase.__init__(self,name)
def setUp(self):
self.fvalue1=2.0
self.fvalue2=4.0
def testAdd(self):
result=self.fvalue1 + self.fvalue2
print "result: %d" % (result)
assert(result == 6.0)
def pfail():
mt=MathTest('MathTest.testAdd')
result=mt.run()
for f in result.failures():
print f
------------ end MathTest file -----
jython -i MathTest.py
pfail()
MathTest.testAdd(org.python.proxies.__main__$MathTest$0): Method
"MathTest.testAdd" not found
Any help would be appreciated,
Ed Perkins
|
|
From: Samuele P. <pe...@in...> - 2001-09-14 19:07:53
|
Hi. If what you need is just co_names (although I don't get why and how is that used/necessary) you should start looking at org.python.compiler.CodeCompiler,... and the functions to construct code in org.python.core.Py It's just boring, and you should roughly get how the compiler works but it is not difficult. To be honest jython does support co_names because it is not necessary, in CPython co_names contains complementary info needed by the bytecode. Even inspect.py does not use it. In any case if the use of co_names is related to security adding it to jython is not that useful, because potentially forged java bytecode could be delivered together with an irrelevant co_names. regards. > From: "Kevin Dangoor" <kda...@we...> > To: <jyt...@li...> > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > X-Priority: 3 > X-MSMail-Priority: Normal > X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 > Subject: [Jython-dev] co_names > X-BeenThere: jyt...@li... > X-Mailman-Version: 2.0.5 > List-Help: <mailto:jyt...@li...?subject=help> > List-Post: <mailto:jyt...@li...> > List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/jython-dev>, <mailto:jyt...@li...?subject=subscribe> > List-Id: <jython-dev.lists.sourceforge.net> > List-Unsubscribe: <https://lists.sourceforge.net/lists/listinfo/jython-dev>, <mailto:jyt...@li...?subject=unsubscribe> > List-Archive: <https://lists.sourceforge.net/archives//jython-dev/> > X-Original-Date: Fri, 14 Sep 2001 14:30:10 -0400 > Date: Fri, 14 Sep 2001 14:30:10 -0400 > > We'd like to try to get co_names going in PyTableCode for phabric. This > is used extensively in Zope, largely to filter out functions and variables > that begin with "_". We've got some other work we're doing in which Zope > Page Templates would be useful. We've got those working already, except for > python expressions, which use co_names. > > What are the difficulties in doing this? Where should we begin? All of > my work so far has been in the org.python.core set of classes and I haven't > taken any look at how the parser works and how we would get at that list of > names... > > thanks, > Kevin > > > _______________________________________________ > Jython-dev mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-dev |
|
From: Kevin D. <kda...@we...> - 2001-09-14 18:30:31
|
We'd like to try to get co_names going in PyTableCode for phabric. This
is used extensively in Zope, largely to filter out functions and variables
that begin with "_". We've got some other work we're doing in which Zope
Page Templates would be useful. We've got those working already, except for
python expressions, which use co_names.
What are the difficulties in doing this? Where should we begin? All of
my work so far has been in the org.python.core set of classes and I haven't
taken any look at how the parser works and how we would get at that list of
names...
thanks,
Kevin
|
|
From: <Rob...@ho...> - 2001-09-14 02:16:00
|
Hing Lung Motor Mfy, New Offer Aug-2001 http://www.hinglungmotor.com.hk hl...@i-... hl...@ct... Fax: 852-24817148 Please contact Mr. Robert cheung Tel: (852) 2421 8309 2425 9526 NO: HL101-D-D8xH6 VIBRATER MOTOR SIZE: 20 x 15.5 x H25 MM PRICE: US$ 0.13/PCNO: HL307 MOTOR SIZE: D12 x 19.5 MM PRICE: US$ 0.38/PC NO: HL1011-DC MOTOR FOR WHEELCHAIR, SCOOTER SIZE: D100 x H70 MM OUTPUT: 95 W PRICE: US$ 13.50/PCNO: HL200 GENERATOR MOTOR SIZE: D30.5 x H13 MM PRICE: US$ 2.3 WE PRODUCE MORE THAN 50 DIFFERENT DESIGN AND SIZE OF AC/DC MOTORS, THEY ARE SUITABLE FOR OPERATION TOYS, HOUSEHOLD APPLIANCES, RECORDS, SCOOTER, VIBRATOR, GENERATOR, WHEELCHAIR ETC. =A1@ -----ANY ENQUIRY ARE WELCOME----- =A1@ =A1@ |
|
From: Ted B. <te...@et...> - 2001-09-13 18:24:54
|
On Tuesday 11 September 2001 12:43, Finn Bock wrote: > [Ted Berg] > > This is just a very minor suggestion to your perfectly valid example. <snip> > > Calling exec() is quite slow compared to calling the API directly: > > PySystemState sys = Py.getSystemState(); > sys.path.append(new PyString(buf.toString())); > > OTOH when addDirToInterpPath() is only called once it hardly matter at > all except to my sense of rightness. > > Thanks for posting your example. Your sense of rightness can rest knowing that all is well ( at least in this respect ) with one application. :) Thank you for your suggestion, it is definitely a more elegant soluion. ted |
|
From: <no...@so...> - 2001-09-13 09:04:38
|
Patches item #461151, was opened at 2001-09-13 02:04 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312867&aid=461151&group_id=12867 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Otmar Humbel (otmarhumbel) Assigned to: Nobody/Anonymous (nobody) Summary: Simple java class import Initial Comment: The following lines added just at the beginning of method importFromAs in org/python/core/imp.java (from the 2.0 codebase) would make the import of single java classes a bit more tolerant, especially if the package manager encounters a 'bad' .jar File: public static void importFromAs(String mod, String[] names, String[] asnames, PyFrame frame) { if ( names.length==1 && names.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 // ... } ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312867&aid=461151&group_id=12867 |
|
From: <bc...@wo...> - 2001-09-11 19:41:06
|
[Ted Berg]
This is just a very minor suggestion to your perfectly valid example.
>I am shipping the standard modules as part of my application jar. I list
>jython.jar as a required extension ( placed in lib\ext ) and then append
>"/fully qualified pathname to my jar!Lib" to the sys.path of the interpreter.
>
>Here's the code I use to do so. Just make a call like this:
>
>addDirToInterpPath( myInterp, "Lib" );
>
>---
>
> void addDirToInterpPath( org.python.util.PythonInterpreter interp, String
>subdir )
> {
> interp.exec( "import sys" );
You don't need this. See below.
> // leading and trailing slashes required to get the URL for a directory.
> if ( !subdir.startsWith( "/" ) )
> subdir = "/"+subdir;
> if ( !subdir.endsWith( "/" ) )
> subdir = subdir + "/";
>
> // get the URL
> java.net.URL u = MainFrame.class.getResource( subdir );
>
> // make the URL jython friendly
> StringBuffer buf = new StringBuffer( u.toString() );
>
> // replace the !/ pair with ! so jython can find the directory
> int index = buf.toString().indexOf( "!/" );
> if ( index > -1 )
> {
> buf.replace( index, index + 2, "!" );
> }
>
> // remove the protocol part of the URL
> buf.replace( 0, buf.toString().lastIndexOf( ":" ) + 1, "" );
> if ( buf.toString().endsWith( "/" ) )
> buf.setLength( buf.toString().length() -1 );
>
> // append the path to sys.path
> interp.exec( "sys.path.append( '" + buf.toString() + "' )" );
Calling exec() is quite slow compared to calling the API directly:
PySystemState sys = Py.getSystemState();
sys.path.append(new PyString(buf.toString()));
OTOH when addDirToInterpPath() is only called once it hardly matter at
all except to my sense of rightness.
Thanks for posting your example.
regards,
finn
|
|
From: Ted B. <te...@et...> - 2001-09-11 00:37:51
|
On Monday 10 September 2001 13:03, Phil Surette wrote:
> I'd like to be able to easily bundle jython with other applications so that
> I can use the full power of python alongside my java apps. I'd like to be
> able to do this without requiring users to perform an installation of
> jython - it should be enough just to include the necessary jars.
>
> Right now, I can include jython.jar with an app and I get lots of
> functionality, but I can't access the python libraries. I would _love_ to
> be able to include the standard libraries either within jython.jar itself
> or in an extra libary (though everything in one jar is definitely the
> sweetest solution.
>
> Has this been done already but I'm just missing it? If no, can you give me
> some pointers on where to dive into the code to make this happen?
>
> - Phil Surette
I am shipping the standard modules as part of my application jar. I list
jython.jar as a required extension ( placed in lib\ext ) and then append
"/fully qualified pathname to my jar!Lib" to the sys.path of the interpreter.
Here's the code I use to do so. Just make a call like this:
addDirToInterpPath( myInterp, "Lib" );
---
void addDirToInterpPath( org.python.util.PythonInterpreter interp, String
subdir )
{
interp.exec( "import sys" );
// leading and trailing slashes required to get the URL for a directory.
if ( !subdir.startsWith( "/" ) )
subdir = "/"+subdir;
if ( !subdir.endsWith( "/" ) )
subdir = subdir + "/";
// get the URL
java.net.URL u = MainFrame.class.getResource( subdir );
// make the URL jython friendly
StringBuffer buf = new StringBuffer( u.toString() );
// replace the !/ pair with ! so jython can find the directory
int index = buf.toString().indexOf( "!/" );
if ( index > -1 )
{
buf.replace( index, index + 2, "!" );
}
// remove the protocol part of the URL
buf.replace( 0, buf.toString().lastIndexOf( ":" ) + 1, "" );
if ( buf.toString().endsWith( "/" ) )
buf.setLength( buf.toString().length() -1 );
// append the path to sys.path
interp.exec( "sys.path.append( '" + buf.toString() + "' )" );
}
---
ted
|
|
From: Titus B. <ti...@ca...> - 2001-09-10 20:42:19
|
-> I'd like to be able to easily bundle jython with other applications so that -> I can use the full power of python alongside my java apps. I'd like to be -> able to do this without requiring users to perform an installation of jython -> - it should be enough just to include the necessary jars. -> -> Right now, I can include jython.jar with an app and I get lots of -> functionality, but I can't access the python libraries. I would _love_ to be -> able to include the standard libraries either within jython.jar itself or in -> an extra libary (though everything in one jar is definitely the sweetest -> solution. -> -> Has this been done already but I'm just missing it? If no, can you give me -> some pointers on where to dive into the code to make this happen? If you already have a Jython app installed, you can create a frozen distribution & send it all out in a .jar file; that's relatively easy, in fact: the command jythonc --all -j out.jar startProgram.py should bundle up everything into 'out.jar'. --titus |
|
From: Phil S. <psu...@es...> - 2001-09-10 20:02:28
|
I'd like to be able to easily bundle jython with other applications so that I can use the full power of python alongside my java apps. I'd like to be able to do this without requiring users to perform an installation of jython - it should be enough just to include the necessary jars. Right now, I can include jython.jar with an app and I get lots of functionality, but I can't access the python libraries. I would _love_ to be able to include the standard libraries either within jython.jar itself or in an extra libary (though everything in one jar is definitely the sweetest solution. Has this been done already but I'm just missing it? If no, can you give me some pointers on where to dive into the code to make this happen? - Phil Surette |
|
From: Frank C. <fc...@pu...> - 2001-09-09 15:44:05
|
I recently met Tim Boudreau, product manager for NetBeans. Tim encouraged me to consider writing extensions to NetBeans to better support Jython scripting. NetBeans is the open-source project that powers Sun's Forte IDE. NetBeans is to Forte what Mozilla is to Netscape Communicator. I'm wondering if this makes sense to the Jython community? The resulting project would let you use NetBeans as an IDE for Jython scripting. In the NetBeans environment you would have a simple text editor that would handle Jython's spacing and a link from the debugger back to the editor to show you which line caused an error. What do you think? Info 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. |
|
From: <cha...@at...> - 2001-09-09 14:10:23
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 FINAL//EN"> <HTML> <HEAD> <meta http-equiv="Content-Language" content="en-gb"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <META NAME="Author" CONTENT="Nick Moss"> <META NAME="Generator" CONTENT="Microsoft FrontPage 4.0"> <TITLE>Charter Vessels</TITLE> </HEAD> <BODY BACKGROUND="http://www.atlantic-marine.co.uk/assets/images/back.gif" LINK="#0000FF" VLINK="#800080" TEXT="#000000" TOPMARGIN=0 LEFTMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0> <TABLE CELLPADDING=0 CELLSPACING=0 BORDER=0 WIDTH=800> <TR VALIGN=TOP ALIGN=LEFT> <TD> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=135 NOF=LY height="873"> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=67> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=135 HEIGHT=61 NOF="LayoutRegion3" bgcolor="#FF3300"> <TR ALIGN=LEFT VALIGN=TOP> <TD> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=117 NOF="LayoutRegion3"> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=17 HEIGHT=61><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=17 HEIGHT=1 BORDER=0></TD> <TD WIDTH=100 ALIGN=LEFT VALIGN=TOP><IMG ID="Picture3" height=61 width=100 SRC="http://www.atlantic-marine.co.uk/assets/images/logo_sm.gif" BORDER=0></TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=806> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=135 HEIGHT=1026 NOF="LayoutRegion1" bgcolor="#FF3300"> <TR ALIGN=LEFT VALIGN=TOP> <TD height="1026"> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=135 NOF="LayoutRegion1"> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=9 HEIGHT=12><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=9 HEIGHT=1 BORDER=0></TD> <TD></TD> <TD WIDTH=6><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=6 HEIGHT=1 BORDER=0></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover2A730Over() {} function onPictureRollover2A730Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover2A730 = new Image() graphic1PictureRollover2A730.src = 'http://www.atlantic-marine.co.uk/thecompany1.gif'; graphic2PictureRollover2A730 = new Image() graphic2PictureRollover2A730.src = 'http://www.atlantic-marine.co.uk/thecompany2.gif'; function onPictureRollover2A730Over() { document.PictureRollover2A730.src=graphic2PictureRollover2A730.src; } function onPictureRollover2A730Out() { document.PictureRollover2A730.src=graphic1PictureRollover2A730.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/the_company.html" onMouseOver="onPictureRollover2A730Over(this)" onMouseOut="onPictureRollover2A730Out(this)"><IMG ID="PictureRollover2" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/thecompany1.gif" BORDER=0 name=PictureRollover2A730></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=14></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover3A1120Over() {} function onPictureRollover3A1120Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover3A1120 = new Image() graphic1PictureRollover3A1120.src = 'http://www.atlantic-marine.co.uk/whatwedo1.gif'; graphic2PictureRollover3A1120 = new Image() graphic2PictureRollover3A1120.src = 'http://www.atlantic-marine.co.uk/whatwedo2.gif'; function onPictureRollover3A1120Over() { document.PictureRollover3A1120.src=graphic2PictureRollover3A1120.src; } function onPictureRollover3A1120Out() { document.PictureRollover3A1120.src=graphic1PictureRollover3A1120.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/what_we_do.html" onMouseOver="onPictureRollover3A1120Over(this)" onMouseOut="onPictureRollover3A1120Out(this)"><IMG ID="PictureRollover3" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/whatwedo1.gif" BORDER=0 name=PictureRollover3A1120></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=14></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover4A1510Over() {} function onPictureRollover4A1510Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover4A1510 = new Image() graphic1PictureRollover4A1510.src = 'http://www.atlantic-marine.co.uk/maritimesurveys1.gif'; graphic2PictureRollover4A1510 = new Image() graphic2PictureRollover4A1510.src = 'http://www.atlantic-marine.co.uk/maritimesurveys2.gif'; function onPictureRollover4A1510Over() { document.PictureRollover4A1510.src=graphic2PictureRollover4A1510.src; } function onPictureRollover4A1510Out() { document.PictureRollover4A1510.src=graphic1PictureRollover4A1510.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/maritime_surveys.html" onMouseOver="onPictureRollover4A1510Over(this)" onMouseOut="onPictureRollover4A1510Out(this)"><IMG ID="PictureRollover4" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/maritimesurveys1.gif" BORDER=0 name=PictureRollover4A1510></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=14></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover5A1900Over() {} function onPictureRollover5A1900Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover5A1900 = new Image() graphic1PictureRollover5A1900.src = 'http://www.atlantic-marine.co.uk/chartervessels1.gif'; graphic2PictureRollover5A1900 = new Image() graphic2PictureRollover5A1900.src = 'http://www.atlantic-marine.co.uk/chartervessels2.gif'; function onPictureRollover5A1900Over() { document.PictureRollover5A1900.src=graphic2PictureRollover5A1900.src; } function onPictureRollover5A1900Out() { document.PictureRollover5A1900.src=graphic1PictureRollover5A1900.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/charter_vessels.html" onMouseOver="onPictureRollover5A1900Over(this)" onMouseOut="onPictureRollover5A1900Out(this)"><IMG ID="PictureRollover5" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/chartervessels1.gif" BORDER=0 name=PictureRollover5A1900></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover6A2300Over() {} function onPictureRollover6A2300Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover6A2300 = new Image() graphic1PictureRollover6A2300.src = 'http://www.atlantic-marine.co.uk/maritimehouse1.gif'; graphic2PictureRollover6A2300 = new Image() graphic2PictureRollover6A2300.src = 'http://www.atlantic-marine.co.uk/maritimehouse2.gif'; function onPictureRollover6A2300Over() { document.PictureRollover6A2300.src=graphic2PictureRollover6A2300.src; } function onPictureRollover6A2300Out() { document.PictureRollover6A2300.src=graphic1PictureRollover6A2300.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/maritime_house.html" onMouseOver="onPictureRollover6A2300Over(this)" onMouseOut="onPictureRollover6A2300Out(this)"><IMG ID="PictureRollover6" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/maritimehouse1.gif" BORDER=0 name=PictureRollover6A2300></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover7A2700Over() {} function onPictureRollover7A2700Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover7A2700 = new Image() graphic1PictureRollover7A2700.src = 'http://www.atlantic-marine.co.uk/latestnews1.gif'; graphic2PictureRollover7A2700 = new Image() graphic2PictureRollover7A2700.src = 'http://www.atlantic-marine.co.uk/latestnews2.gif'; function onPictureRollover7A2700Over() { document.PictureRollover7A2700.src=graphic2PictureRollover7A2700.src; } function onPictureRollover7A2700Out() { document.PictureRollover7A2700.src=graphic1PictureRollover7A2700.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/latest_news.html" onMouseOver="onPictureRollover7A2700Over(this)" onMouseOut="onPictureRollover7A2700Out(this)"><IMG ID="PictureRollover7" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/latestnews1.gif" BORDER=0 name=PictureRollover7A2700></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover8A3100Over() {} function onPictureRollover8A3100Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover8A3100 = new Image() graphic1PictureRollover8A3100.src = 'http://www.atlantic-marine.co.uk/furtherinfo1.gif'; graphic2PictureRollover8A3100 = new Image() graphic2PictureRollover8A3100.src = 'http://www.atlantic-marine.co.uk/furtherinfo2.gif'; function onPictureRollover8A3100Over() { document.PictureRollover8A3100.src=graphic2PictureRollover8A3100.src; } function onPictureRollover8A3100Out() { document.PictureRollover8A3100.src=graphic1PictureRollover8A3100.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/further_info.html" onMouseOver="onPictureRollover8A3100Over(this)" onMouseOut="onPictureRollover8A3100Out(this)"><IMG ID="PictureRollover8" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/furtherinfo1.gif" BORDER=0 name=PictureRollover8A3100></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover9A3500Over() {} function onPictureRollover9A3500Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover9A3500 = new Image() graphic1PictureRollover9A3500.src = 'http://www.atlantic-marine.co.uk/contactus1.gif'; graphic2PictureRollover9A3500 = new Image() graphic2PictureRollover9A3500.src = 'http://www.atlantic-marine.co.uk/contactus2.gif'; function onPictureRollover9A3500Over() { document.PictureRollover9A3500.src=graphic2PictureRollover9A3500.src; } function onPictureRollover9A3500Out() { document.PictureRollover9A3500.src=graphic1PictureRollover9A3500.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/html/contact_us.html" onMouseOver="onPictureRollover9A3500Over(this)" onMouseOut="onPictureRollover9A3500Out(this)"><IMG ID="PictureRollover9" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/contactus1.gif" BORDER=0 name=PictureRollover9A3500></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=135 HEIGHT=25 COLSPAN=3> <script language="JavaScript"><!-- function onPictureRollover1A3900Over() {} function onPictureRollover1A3900Out() {} //--></script> <script language="JavaScript1.1"><!-- graphic1PictureRollover1A3900 = new Image() graphic1PictureRollover1A3900.src = 'http://www.atlantic-marine.co.uk/home1.gif'; graphic2PictureRollover1A3900 = new Image() graphic2PictureRollover1A3900.src = 'http://www.atlantic-marine.co.uk/home2.gif'; function onPictureRollover1A3900Over() { document.PictureRollover1A3900.src=graphic2PictureRollover1A3900.src; } function onPictureRollover1A3900Out() { document.PictureRollover1A3900.src=graphic1PictureRollover1A3900.src; } //--></script> <a href="http://www.atlantic-marine.co.uk/index.html" onMouseOver="onPictureRollover1A3900Over(this)" onMouseOut="onPictureRollover1A3900Out(this)"><IMG ID="PictureRollover1" height=25 width=135 SRC="http://www.atlantic-marine.co.uk/home1.gif" BORDER=0 name=PictureRollover1A3900></a></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD COLSPAN=3 HEIGHT=15></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD HEIGHT=60></TD> <TD WIDTH=120 ALIGN=LEFT VALIGN=TOP></TD> <TD></TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </TD> <TD> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=665 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=665 HEIGHT=44><IMG ID="Banner1" height=44 width=665 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Charter_Vessels_Natl_mar_banner.gif" BORDER=0 ALT="Charter Vessels"></TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=640 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=40 HEIGHT=17><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=40 HEIGHT=1 BORDER=0></TD> <TD> <p align="center"><font color="#0000FF">AVAILABILITY, NEWS & UPDATES</font></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD HEIGHT=20></TD> <TD WIDTH=600> <TABLE ID="NavigationBar1" BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=600> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=120><A HREF="http://www.atlantic-marine.co.uk/html/bremen.html"><IMG ID="NavigationButton1" height=20 width=120 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Bremen_Nbutton.gif" BORDER=0 ALT="Bremen"></A></TD> <TD WIDTH=120><A HREF="http://www.atlantic-marine.co.uk/html/pacific_horizon.html"><IMG ID="NavigationButton2" height=20 width=120 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Pacific_Horizon_Nbutton.gif" BORDER=0 ALT="Pacific Horizon"></A></TD> <TD WIDTH=120><A HREF="http://www.atlantic-marine.co.uk/html/scotian_shore.html"><IMG ID="NavigationButton3" height=20 width=120 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Scotian_Shore_Nbutton.gif" BORDER=0 ALT="Scotian Shore"></A></TD> <TD WIDTH=120><A HREF="http://www.atlantic-marine.co.uk/html/prince_madog.html"><IMG ID="NavigationButton4" height=20 width=120 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Prince_Madog_Nbutton.gif" BORDER=0 ALT="Prince Madog"></A></TD> <TD WIDTH=120 HEIGHT=20><A HREF="http://www.atlantic-marine.co.uk/html/chardonnay.html"><IMG ID="NavigationButton5" height=20 width=120 SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/Chardonnay_Nbutton.gif" BORDER=0 ALT="Chardonnay"></A></TD> </TR> </TABLE> </TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=16 HEIGHT=9><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=16 HEIGHT=1 BORDER=0></TD> <TD> <p align="center">If you are not involved in shipping then we have been given your email address by mistake! If so we do apologise and assure you that if you reply to <a href="mailto:uns...@at...">uns...@at...</a> we will not trouble you ever again. Once again, SORRY for any inconvenience we may have caused.</TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD></TD> <TD WIDTH=649> <TABLE ID="Table1" BORDER=1 CELLSPACING=0 CELLPADDING=2 WIDTH=649> <TR> <TD VALIGN=TOP WIDTH=231><P ALIGN=CENTER><A HREF="http://www.atlantic-marine.co.uk/html/bremen.html"><IMG ID="Picture12" height=61 width=100 SRC="http://www.atlantic-marine.co.uk/assets/images/Bremen_thumb.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0></A><BR><A HREF="http://www.atlantic-marine.co.uk/html/bremen.html"><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">M.V. Bremen</FONT></A><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"><BR>92m</FONT><FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">, deep sea survey, multi-purpose survey & offshore support ship</FONT></TD> <TD VALIGN=TOP WIDTH=404> <FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> Latest availability update: Saturday 8th of September at Shoreham or Portland, UK. Looking for T/C.. <UL TYPE="DISC"> <LI>Geophysical </LI> <LI>Suitable for DP1/ DP2 operations (With Mods) </LI> <LI>Hydrographic surveys </LI> <LI>Geotechnical </LI> <LI>ROV & AUV Launching & support </LI> <LI>World-wide multi role capability </FONT></LI> </UL> </TD> </TR> <TR> <TD WIDTH=231><P ALIGN=CENTER><A HREF="http://www.atlantic-marine.co.uk/html/pacific_horizon.html"><IMG ID="Picture11" height=59 width=100 SRC="http://www.atlantic-marine.co.uk/assets/images/pac_hor_thumb.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0></A><BR><A HREF="http://www.atlantic-marine.co.uk/html/pacific_horizon.html"><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">M.V. Pacific Horizon</FONT></A><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"><BR></FONT><FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">79m, deep sea survey, seismic & multi-purpose survey ship</FONT></TD> <TD VALIGN=TOP WIDTH=404> <FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> Latest availability update: Pacific Horizon is due to complete her current charter in approx 4 months Currently in US Gulf area on survey operations. Available from January 2002 <UL TYPE="DISC"> <LI>Geophysical (inc multi beam swathe + Seismic operations) </LI> <LI>hydrographic surveys </LI> <LI>geotechnical (inc CPTs / Coring and sampling operations) </LI> <LI>ROV & AUV Launching & support </LI> <LI>World-wide multi-role capability </FONT></LI> </UL> </TD> </TR> <TR> <TD WIDTH=231><P ALIGN=CENTER><A HREF="http://www.atlantic-marine.co.uk/html/scotian_shore.html"><IMG ID="Picture14" height=69 width=100 SRC="http://www.atlantic-marine.co.uk/assets/images/scotian_thumb.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0></A><BR><A HREF="http://www.atlantic-marine.co.uk/html/scotian_shore.html"><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">M.V. Scotian Shore</FONT></A><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"><BR></FONT><FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">55m, 4000 BHP AHTSV and survey ship </FONT></TD> <TD VALIGN=TOP WIDTH=404> <FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> HOT NEWS: Latest availability update: Scotian Shore has just arrived back to the UK after 7 months on charter to Alcatel on P.L.G.R. & survey operations. Available prompt in Shoreham from 22nd Aug 2001 with or without PLGR spread. <UL TYPE="DISC"> <LI>The vessel that can do just about anything !! </LI> <LI>Supply and Anchor handling or towage </LI> <LI>Survey operations inc Geophysical & geotechnical operations </LI> <LI>Trenching and heavy submersible equipment handling </LI> <LI>Salvage including wreck evaluation and recovery operations </LI> <LI>Diving support </FONT></LI> </UL> </TD> </TR> <TR> <TD WIDTH=231><P ALIGN=CENTER><A HREF="http://www.atlantic-marine.co.uk/html/prince_madog.html"><IMG ID="Picture15" height=80 width=100 SRC="http://www.atlantic-marine.co.uk/assets/images/MADOG1_thumb.jpg" VSPACE=0 HSPACE=0 ALIGN="TOP" BORDER=0></A><BR><A HREF="http://www.atlantic-marine.co.uk/html/prince_madog.html"><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">R.V. Prince Madog</FONT></A><FONT SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"><BR></FONT><FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT">34m Oceanographic Research Vessel</FONT></TD> <TD VALIGN=TOP WIDTH=404> <FONT COLOR="#000000" SIZE="-1" FACE="Arial,Helvetica,Univers,Zurich BT"> Latest availability update: The brand new build, Prince Madog is now seeking charters for Autumn and Winter 2001. Take the one off chance to harter this 1st class vessel in her inaugural year. <UL TYPE="DISC"> <LI>State of the art instrumentation covering the full range of modern oceanographic research </LI> <LI>Newly built and launched </LI> <LI>Purpose built for ocean science </LI> <LI>Capable of carrying 10 scientists</FONT></LI> </UL> </TD> </TR> </TABLE> </TD> </TR> </TABLE> <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=665 NOF=LY> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=665 HEIGHT=7><IMG SRC="http://www.atlantic-marine.co.uk/assets/images/autogen/clearpixel.gif" WIDTH=665 HEIGHT=1 BORDER=0></TD> </TR> <TR VALIGN=TOP ALIGN=LEFT> <TD WIDTH=665><P ALIGN=CENTER> <P ALIGN=CENTER><FONT COLOR="#0000FF" SIZE="-2" FACE="Arial,Helvetica,Univers,Zurich BT">Atlantic Marine / Maritime Atlantic Ltd - Maritime House - Basin Road North - Hove - East Sussex - BN41 1WR - U.K<BR> Tel: +44 (0)1273 248800 - Fax: +44 (0)1273 248700</FONT><P ALIGN=CENTER> <p align="center"><font color="#0000FF" size="2"><a href="http://www.ship-search.com">http://www.ship-search.com</a></font></p> <p align="center"> </p> <p align="center"><font color="#808000" size="4">(If you are not involved in shipping and do not wish to hear from us again, please email <a href="mailto:uns...@sh...">uns...@at...</a> & type remove in subject line.) </font> </p> </TD> </TR> </TABLE> </TD> </TR> </TABLE> </BODY> </HTML> |
|
From: Frank C. <fc...@pu...> - 2001-09-08 05:57:17
|
FYI: The link to JimH's slides on the www.jython.org home page takes you to a page-no-found error. -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. |
|
From: Mike S. <mik...@to...> - 2001-09-07 19:29:30
|
-- Mike Sluyter Tonic Software http://www.tonic.com/ <http://www.tonic.com/> |
|
From: Samuele P. <pe...@in...> - 2001-09-06 15:56:40
|
Lars Hupfeldt Nielsen wrote: > Hi Brian, > > Thank you for your quick reply. > > It is correct that Java seems to have no notion of a current directory > besides the directory in which the jvm was started. This means that a > perfect solution is not possible. However, a solution which would make > normal (no java.io.... calls) python scripts work correctly is possible. > Jython should maintain it own notion of current directory, file names > should be changed to absolute before calling java. > Makes sense, but personally (don't know about Finn) I will not spend a second trying to implement that. First because of the java.io non java.io resulting confusion. From a general perspective os.chdir is a lot shell task oriented, I personally think if one is writing a shell task program, she's better served by CPython anyway. OTOH sound patches are always welcome. regards, Samuele Pedroni. |
|
From: Lars H. N. <lh...@so...> - 2001-09-06 08:02:37
|
Hi Brian, Thank you for your quick reply. It is correct that Java seems to have no notion of a current directory besides the directory in which the jvm was started. This means that a perfect solution is not possible. However, a solution which would make normal (no java.io.... calls) python scripts work correctly is possible. Jython should maintain it own notion of current directory, file names should be changed to absolute before calling java. Jacl (Tcl java) has solved the problem in this way, a find-grep in their sources showed only a handfull of places in which they referred to current directory. Lars brian zimmer wrote: >Lars, > >Java has no facility for os.chdir() so making it available in Jython without >JNI is difficult, if not impossible. > >brian > >----- Original Message ----- >From: "Lars Hupfeldt Nielsen" <lh...@so...> >To: <jyt...@li...> >Sent: Wednesday, September 05, 2001 3:25 AM >Subject: [Jython-dev] Missing os.chdir() > > >>Hi. >> >>The 'chdir()' function is missing from the os module, this is a show >>stopper for my application. >>Is there any other way to do a chdir()? >>Calling 'java.lang.System.setProperty("user.dir", dir.toString());' has >>no effect. >> >>Is there any plan for the implementation of this function? >> >> >>Regards >>Lars Hupfeldt Nielsen. >> >> >> >> >>_______________________________________________ >>Jython-dev mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-dev >> > > |