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: Ype K. <yk...@xs...> - 2001-03-15 19:40:17
|
Dear jtyhon developers,
I had google look for some earlier discussion on this subject
as I vaguely recall java and jython exceptions being discussed
not too long ago. However I could not find anything specific
on my problem.
I have roughly the following situation:
import java
somejythonfile = ....
try:
execfile(somejythonfile)
except SomePythonDeclaredException, ke:
nicelyCaught = ke
except java.lang.OutOfMemoryError, oome:
neverCaught = oome
except Exception, e:
someTimesCaught = e
except:
# some releases ago, I tried this to catch an occasional
# internal compiler error, and then it never occurred again...
ei = sys.exc_info
...
My problem is that java.lang.OutOfMemoryError is never caught,
even when 'somejythonfile' causes it.
I also tried to catch java.lang.Throwable, but it flew along as well.
Do I have to go through some java code:
try {
org.python.core.__builtin__.execfile(somejythonfile);
// or whatever it is called in java
} catch (java.lang.OutOfMemoryException oome) {
throw org.python.core.PyException(oome.toString());
}
or can it be done directly in jython?
I realize that running out of memory is tricky business, but
it would be nice if catching this exception would be possible...
Thanks in advance,
Ype
|
|
From: Samuele P. <pe...@in...> - 2001-03-15 19:04:19
|
Hi.
Jython 2.0 more clean semantic wrt import and java loading
was an improvement over JPython.
Now often more features have been requested in the directions of what has
been called:
- "poor man freezing" (the ability to take interpreter $py.class files
and package them somehow for deployment)
- (java) loading from other sources (the possibility to have
import working from jars or classloaders specified at runtime) .
Here are some ideas and proposals toward something concrete in those
directions for 2.1.
Note: jython 2.0 'jreload' module in principle can be used to enable
imports from jars at runtime.
i) allow to have jars specified in sys.path from which both
java classes or python modules can be imported.
open issues:
- will that produce comp. problem with pre-existent code
that expects only dirs in sys.path?
- should the jars added to sys.path be kept open for performance
reasons as long as they are in sys.path?
- when should the "slow" scan for java packages be scheduled, when
the jar is added to sys.path (more deterministic) or at the next
import, should the results be cached (IMHO no), should there be
a tool to prescan a jar and store the information? in the
normal jython cache? or together or inside the jar?
Some of this behaviour require sys.path changes to have side effects,
this could be difficult to obtain in a clean way.
ii) with i) jython -jar foo.jar will put foo.jar in sys.path ;)
iii) make jython behaviour even more regular:
(some definitions:
rt-classloader: is the classloader of jython runtime,
sys.classLoader is sys.classLoader ;) )
actually jython behaviour is as follows:
sys.classLoader not set:
java loading: rt-classloader > sys.path
python loading: sys.path
sys.classLoader set:
java loading: sys.classLoader
python loading: sys.path
special case: jythonc compiled code (=> sys.classLoader set)
java loading rt-classloader
python loading: special from rt-classloader > sys.path
but in this case as required sys.path==[]
ideas:
applicative code should be able to set sys.classLoader
obtaining a meaningful behaviour (typically this should not
be done or at most once but this should not be enforced),
there should be a version of PythonInterpreter.initialize
that takes a classLoader and set it in sys.classLoader
new behaviour: always:
java loading: rt-classloader > sys.classLoader (if set) > sys.path
python loading: special* from rt-classloader & sys.classLoader > sys.path
*) by now jythonc compiled code comes with an hardcoded list that specifies
which python modules/packages should be loaded from java classloaders,
this should be mantained and extended, see iv)
iv) <poor man freezing>
how to deal with java -jar foo.jar where foo.jar contains jython runtime,
java classes using PythonInterpreter API and a set of packaged $py.class
or .py files ; or the similar applet case, etc ?
First it should be noted that in general we cannot assume that we can scan
the jar at runtime.
idea: have a tool that take a jar or a set of directories
and collect which java packages-classes/python packages-modules are defined
and produce a report in a textual format (for maximal flexibility).
This report can be put in the jar and be read (impl/expl) by jython runtime
as a _resource_ in
order to initiliaze its internal tables for special and java loading (see *)).
open issues: $py.class files still require that proxies and adapters
are built at runtime, so classloader creation permission is required,
this should not be an issue for server side deployment or trusted
applets, for normal applets jythonc solve this. Is this a serious
problem?
Note: the open issue is somehow related (could be partially solved by) to the
possibility of loading jythonc compiled code in the interpreter (this actually
fails), some of the proposals here could help to construct a framework for that
but for the moment I'm not addressing such a situation.
v) eventually jreload.makeLoadSet can be extended to accept
a classloader (this will not allow reloading but makes sense for
the loading from other srcs issue) and load-sets could have add_package-
like features.
I would appreciate some feedback about what is/is not necessary,
design ideas and input about the open issues.
Please, no pure "it would be nice if" requests.
regards, Samuele Pedroni
|
|
From: DE S. C. <chr...@ar...> - 2001-03-15 14:38:53
|
Christine DE SOUSA ARCHE - Groupe Siemens tel: 01.69.18.62.03 Consultez notre site web : http://www.arche.fr |
|
From: <new...@in...> - 2001-03-14 15:43:28
|
Dear Sir, You can be our Business Associate, if you are from India and in some way connected with Industrial Products. The Business association can be very profitable to you and to us. For details Please visit http://www.newindiaproducts.com/newbiz365 You can contact any of our Business Associate in your city by clicking on the link http://newindiaproducts.com/cgi-bin/search.asp Please accept my profound apologies, if this message took some of your time and the offer was not of interest to you. Thanking you, Vijay Vasani Project Manager - NewBiz365 Phone 022-4229481 ------------------------------------------------------ ------------------- Since India has no anti-spamming law, we follow the US directive passed in Bill.1618 Title III by the 105th US Congress, which states that mail cannot be considered spam if it contains the following information. If you want to be removed from the mailing list reply with "unsubscribe" in the subject line and specify your e-mail address as mentioned in the circular for faster response to unsubscribe. Incase you are using vsnl.com address, kindly mention both long (xx...@yy...) and short (xx...@vs...) address to save time |
|
From: Matthew W. <sp...@wr...> - 2001-03-13 23:54:49
|
I was playing with Jython a bit and found this problem (or at least,
something I'm doing wrong):
I'm trying to compile a python script that imports the curses module,
and I get an error 'ImportError: no module named _curses' error. I
copied the modules from my python-2.0 directory to jython/Lib and got
further, but still the error boils down to '_curses' not being found.
Any ideas?
Verbose errors:
at java.lang.Throwable.<init>(Throwable.java:84)
at java.lang.Exception.<init>(Exception.java:35)
at java.lang.RuntimeException.<init>(RuntimeException.java:39)
at org.python.core.PyException.<init>(PyException.java:44)
at org.python.core.PyException.<init>(PyException.java:56)
at org.python.core.Py.ImportError(Py.java:180)
at org.python.core.imp.load(imp.java:368)
at org.python.core.imp.load(imp.java:376)
at org.python.core.imp.importName(imp.java:447)
at org.python.core.imp.importName(imp.java:509)
at org.python.core.ImportFunction.load(__builtin__.java:967)
at org.python.core.ImportFunction.__call__(__builtin__.java:961)
at org.python.core.PyObject.__call__(PyObject.java:250)
at org.python.core.__builtin__.__import__(__builtin__.java:921)
at org.python.core.imp.importAll(imp.java:592)
at curses$py.f$0(__init__.py)
at curses$py.call_function(__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:155)
at org.python.core.imp.createFromCode(imp.java:157)
at org.python.core.imp.createFromSource(imp.java:147)
at org.python.core.imp.loadFromPath(imp.java:316)
at org.python.core.imp.loadFromPath(imp.java:293)
at org.python.core.imp.loadFromPath(imp.java:252)
at org.python.core.imp.load(imp.java:357)
at org.python.core.imp.load(imp.java:376)
at org.python.core.imp.importName(imp.java:447)
at org.python.core.imp.importName(imp.java:509)
at org.python.core.ImportFunction.load(__builtin__.java:967)
at org.python.core.ImportFunction.__call__(__builtin__.java:961)
at org.python.core.PyObject.__call__(PyObject.java:250)
at org.python.core.__builtin__.__import__(__builtin__.java:921)
at org.python.core.imp.importOne(imp.java:518)
at ctest$_PyInner.main$3(ctest.java:129)
at ctest$_PyInner.call_function(ctest.java:62)
at org.python.core.PyTableCode.call(PyTableCode.java:155)
at org.python.core.imp.createFromCode(imp.java:157)
at org.python.core.Py.runMain(Py.java:798)
at ctest.main(ctest.java:170)
Traceback (innermost last):
File "/home/matt/src/cvs/python/curses/ctest.py", line 0, in main
File "/usr/local/jython/Lib/curses/__init__.py", line 15, in ?
ImportError: no module named _curses
Source code:
import curses, traceback
import os
# Globals
options=[]
breakstate=0
def getMenuItems():
if options == []:
(pstdin,pstdout)=os.popen2('cd /etc/profiler; ls net*')
for line in pstdout.readlines():
options[:]+=[line[0:-1]]
def mainMenu(stdscr):
# Frame the interface area at fixed VT100 size
getMenuItems()
width=10
if len(options) > 6:
width+=len(options)-6
global screen
screen = stdscr.subwin(width, 70, 0, 0)
screen.box()
screen.hline(2, 1, curses.ACS_HLINE, 68)
screen.addstr(1,2,"Please choose the profile you wish to load:")
n=1
for option in options:
screen.addstr(2+n,5,str(n) + ". " + option)
n=n+1
screen.addstr(width-2,2,"Which Profile? (1-"+str(n-1) + ") ")
screen.refresh()
# Define the topbar menus
# file_menu = ("File", "file_func()")
#proxy_menu = ("Proxy Mode", "proxy_func()")
#doit_menu = ("Do It!", "doit_func()")
#help_menu = ("Help", "help_func()")
#exit_menu = ("Exit", "EXIT")
# Add the topbar menus to screen object
# topbar_menu((file_menu, proxy_menu, doit_menu,
# help_menu, exit_menu))
# Enter the topbar menu loop
# while topbar_key_handler():
# draw_dict()
if __name__=='__main__':
try:
# Initialize curses
stdscr=curses.initscr()
# Turn off echoing of keys, and enter cbreak mode,
# where no buffering is performed on keyboard input
curses.noecho()
curses.cbreak()
# In keypad mode, escape sequences for special keys
# (like the cursor keys) will be interpreted and
# a special value like curses.KEY_LEFT will be returned
stdscr.keypad(1)
mainMenu(stdscr) # Enter the main loop
# while breakstate == 0:
# c=screen.getch()
# if c == '
# Set everything back to normal
stdscr.keypad(0)
curses.echo()
curses.nocbreak()
curses.endwin() # Terminate curses
except:
# In event of error, restore terminal to sane state.
stdscr.keypad(0)
curses.echo()
curses.nocbreak()
curses.endwin()
traceback.print_exc() # Print the exception
|
|
From: Ted S. <ts...@ya...> - 2001-03-13 02:50:32
|
Has anyone been able to create deployable Jython Swing Applets using Java 1.2 or higher, without using the Java plugin? We have a situation where it IS ok to download swingall.jar, etc. occasionally, but requiring the plugin installation is problematic. Best, Ted Shab __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ |
|
From: Guido v. R. <gu...@di...> - 2001-03-12 23:34:12
|
> >>>>> "SP" == Samuele Pedroni <pe...@in...> writes: > > SP> * CPython 2.1 introduces a symtable module that give access > SP> to the scope info about variables, for the moment the interface > SP> is experimental and related to the actual internals, I don't > SP> know if it is worth to support (?) > > I don't think it's worth supporting yet. I'd like to improve the > interface and make it a bit less implementation specific. Do you have > any ideas on that subject? > > SP> I have found a small difference in how assert was already > SP> implemented in jython and CPython: > > SP> this code does not raise an AssertionError under jython: > > SP> def f(): > SP> __debug__=0 > SP> assert 1!=0 > SP> f() > > SP> CPython impl for assert check only the value for the > SP> global/builtin __debug__ setting, there this code raise such an > SP> exc. > > SP> Should this be changed to match CPython? > > I think it should. I've discussed this with Guido a few times. IIRC, > he does intend for it work this way. > > I wonder if assignments to __debug__ should trigger a warning. An error! This should not be allowed. It's a read-only variable. --Guido van Rossum (home page: http://www.python.org/~guido/) |
|
From: Samuele P. <pe...@in...> - 2001-03-12 22:20:36
|
Hi. [Jeremy Hylton] > > >>>>> "SP" == Samuele Pedroni <pe...@in...> writes: > > SP> * CPython 2.1 introduces a symtable module that give access > SP> to the scope info about variables, for the moment the interface > SP> is experimental and related to the actual internals, I don't > SP> know if it is worth to support (?) > > I don't think it's worth supporting yet. I'd like to improve the > interface and make it a bit less implementation specific. Do you have > any ideas on that subject? To be honest between a2 and b1 of CPython 2.1 I have not looked that much at your C code (I have looked at previous versions of it), I was mostly busy writing jython nested scopes. I can report what the different phases on jython side detect plus some random notes. 1. phase (its an entire new compiler phase) for each scope it dinstiguishes between: param var local var explicitly global var (from global decl, internally there is distinction between funcdef global that affect nested scopes and classdef global that do not) and free var at the same time free variable from inner scopes are propagated to outer scopes, so cells are dectected, clearly explicit fundef global stop the propagation. special case: in a class scope a variable can be at the same time local or global and free. The same AFAIK is true for CPython. 2. phase (parallel to bytecode generation) free variable final detection: free var from 1. phase can either be explicit globals because of an outer scope decl, implicit global (= top level free) or truly free vars that should be bound to a cell from an outer scope. (impl/expl global info here is propagated top-down). Does symtable in CPython collect results similar to those of phase 1. or more precise one like those from 2. final phase? Then for each scope we should report (with a dict-like structure or accessor functions or ..) the info for the variable in there, and which of them introduce new scope (class,func, lambda(?)) with ptrs to the related info. Possible issues: lambdas or should we ignore them, and code like this def f(x,y): def g(): return x h=g def g(): return y return (h,g) should we be able to distringuish the two g defs? maybe we should use somehow line infos for that. What are the uses that you imagine for symtable? regards, Samuele Pedroni. |
|
From: Jeremy H. <je...@al...> - 2001-03-12 20:06:48
|
>>>>> "SP" == Samuele Pedroni <pe...@in...> writes: SP> * CPython 2.1 introduces a symtable module that give access SP> to the scope info about variables, for the moment the interface SP> is experimental and related to the actual internals, I don't SP> know if it is worth to support (?) I don't think it's worth supporting yet. I'd like to improve the interface and make it a bit less implementation specific. Do you have any ideas on that subject? SP> I have found a small difference in how assert was already SP> implemented in jython and CPython: SP> this code does not raise an AssertionError under jython: SP> def f(): SP> __debug__=0 SP> assert 1!=0 SP> f() SP> CPython impl for assert check only the value for the SP> global/builtin __debug__ setting, there this code raise such an SP> exc. SP> Should this be changed to match CPython? I think it should. I've discussed this with Guido a few times. IIRC, he does intend for it work this way. I wonder if assignments to __debug__ should trigger a warning. Jeremy |
|
From: Novak, B. <bn...@ne...> - 2001-03-12 18:30:51
|
When I download the jython-20.class file it is only 1151 bytes instead of the 1.7M it should be. Any ideas? Downloading on 3/12/2001 using Netscape 4.7. User ID: bnovak2154 |
|
From: Edison E. I. <Mi...@La...> - 2001-03-12 16:59:09
|
What is the relationship between Jython and JPython? -- Michael |
|
From: www.tooltoad.com <sa...@to...> - 2001-03-10 05:15:20
|
www.tooltoad.com www.tooltoad.com www.tooltoad.com HELLO , Please visit us at the GRAND OPENING of www.tooltoad.com Come and see our ROCK BOTTOM pennies on the dollar pricing . We sell electronics , housewares , security items , tools , and much more . THANK YOU The management |
|
From: Samuele P. <pe...@in...> - 2001-03-09 20:10:07
|
Hi. What is still missing for a complete nested scopes support? * activation for the entire interactive session from an interactive prompt (mostly already there) * module settings should influence exec, execfile and compile in module (at the moment that's missing from CPython too) * pdb p command cannot access values in variables shared between nested scopes, that's also a CPython problem. * jythonc support for them * CPython 2.1 introduces a symtable module that give access to the scope info about variables, for the moment the interface is experimental and related to the actual internals, I don't know if it is worth to support (?) I have found a small difference in how assert was already implemented in jython and CPython: this code does not raise an AssertionError under jython: def f(): __debug__=0 assert 1!=0 f() CPython impl for assert check only the value for the global/builtin __debug__ setting, there this code raise such an exc. Should this be changed to match CPython? regards, Samuele Pedroni |
|
From: Samuele P. <pe...@in...> - 2001-03-08 23:43:47
|
Hi. > [Samuele] > > >Hi, > >I have posted to SF a not so little patch that enables optional nested scopes > >semantic > >as in CPython 2.1b1: for the details check > > > >http://sourceforge.net/tracker/?func=detail&atid=312867&aid=406918&group_id=12 867 > > Very cool. I have used the patched version against the tests I have and > with my own applications (which are not using nested scopes of course) > and I have not found any problems at all. Lets get it committed ASAP. > Happy to read that, and ... done regards, Samuele Pedroni |
|
From: <bc...@wo...> - 2001-03-08 17:09:44
|
[Samuele] >Hi, >I have posted to SF a not so little patch that enables optional nested scopes >semantic >as in CPython 2.1b1: for the details check > >http://sourceforge.net/tracker/?func=detail&atid=312867&aid=406918&group_id=12867 Very cool. I have used the patched version against the tests I have and with my own applications (which are not using nested scopes of course) and I have not found any problems at all. Lets get it committed ASAP. I also tried it with the test_future.py from 2.1b1. The test_future3 fails, but I certainly like our message better. The nested scope feature is a major step towards a 2.1a1 release of Jython. regards, finn |
|
From: Samuele P. <pe...@in...> - 2001-03-08 12:26:34
|
Hi.
[Jorge Tellez]
>
> Hi,
> I would like to execute a "compiled" Jython code passing parameters. For that
I used the __call and I pass the parameters like this:
>
> PyObject FooFunction = interp.get("function");
> FooFunction.__call__(new PyInteger(1) ,new PyInteger(2),new PyInteger(3), new
PyInteger(4));
>
> This works fine. But now I would like to pass 8 parameters, and in the
PyObject the maximum is 4,
> There is another way to do that?
This should do the job:
Foo.Function.__call__(new PyObject[] {Py.newInteger(1), ...as many PyObjects as
needed }, Py.NoKeywords);
regards.
|
|
From: Samuele P. <pe...@in...> - 2001-03-08 12:24:05
|
I forgot to say, that this is only the interpreter part, jythonc part is still left to do. regards, Samuele Pedroni |
|
From: Jorge T. <jt...@te...> - 2001-03-08 11:36:18
|
Hi,
I would like to execute a "compiled" Jython code passing parameters. For =
that I used the __call and I pass the parameters like this:
PyObject FooFunction =3D interp.get("function");
FooFunction.__call__(new PyInteger(1) ,new PyInteger(2),new =
PyInteger(3), new PyInteger(4));
This works fine. But now I would like to pass 8 parameters, and in the =
PyObject the maximum is 4,
There is another way to do that?
Thanks for your Help
Jorge Tellez
jt...@te...
|
|
From: Samuele P. <pe...@in...> - 2001-03-08 05:35:01
|
Hi, I have posted to SF a not so little patch that enables optional nested scopes semantic as in CPython 2.1b1: for the details check http://sourceforge.net/tracker/?func=detail&atid=312867&aid=406918&group_id=128 67 For the moment from __future__ import nested_scopes does not setup nested scope for the entire session from an interactive prompt ( the necessary hooks are already there ) but it works at file level. regards, Samuele Pedroni. |
|
From: nobody <no...@us...> - 2001-03-08 05:17:50
|
Patches #406918, was updated on 2001-03-07 21:18 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312867&aid=406918&group_id=12867 Category: None Group: None Status: Open Priority: 5 Submitted By: Samuele Pedroni Assigned to: Nobody/Anonymous Summary: nested scopes Initial Comment: Optional nested scopes support (as python 2.1b1) LocalsCompiler becomes obsolete. Adds few new files. from __future__ import nested_scopes does not setup nested scope for the entire session from an interactive prompt: but the necessary hooks are already there ... It passes test_scope from python 2.1b1 and a typical subset of python 2.1b1 regression tests and the jython regrtest suite (even with nested scopes logic forced on). [some corner cases must be clarified together with python]. -- sP ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=312867&aid=406918&group_id=12867 |
|
From: Thomas R. <t.r...@co...> - 2001-03-07 15:50:28
|
Hello, I've a java applet that runs with the Java PlugIn (JDK1.3). The applet is (RSA-)signed an has all permissions. Within the applet I tried to execute a jpython command (print "hello") with the exec-method of PythonInterpreter. The exec-method causes an java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable. I delivered the python.jar with the applet and I'm able to intstantiate the PytonInterpreter and any class of org/python/core in the applet without problems. Could somebody help me?? with kind regards Thomas OS: Windows NT4.0 SP6 stack strace: Exception occurred during event dispatching: Traceback (innermost last): (no code object) at line 0 java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:486) at java.lang.ClassLoader.defineClass(ClassLoader.java:426) at org.python.core.BytecodeLoader.loadClassFromBytes(BytecodeLoader.java:76) at org.python.core.BytecodeLoader.loadBytes(BytecodeLoader.java:92) at org.python.core.BytecodeLoader.makeCode(BytecodeLoader.java:103) at org.python.core.Py.compile(Py.java:1341) at org.python.core.Py.compile(Py.java:1354) at org.python.core.__builtin__.compile(__builtin__.java:188) at org.python.core.Py.exec(Py.java:946) at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:111) at com.pd.prototypes.ptarchi.allg.TestApplet.jButton1_actionPerformed(testapple t.java:113) at com.pd.prototypes.ptarchi.allg.TestApplet$1.actionPerformed(testapplet.java: 45) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButto n.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:3 78) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener .java:216) at java.awt.Component.processMouseEvent(Component.java:3717) at java.awt.Component.processEvent(Component.java:3546) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2595) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Component.dispatchEvent(Component.java:2499) at java.awt.EventQueue.dispatchEvent(EventQueue.java:319) at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:103) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:84) java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: org/python/core/PyFunctionTable |
|
From: <bc...@wo...> - 2001-03-07 14:07:00
|
[Kiran R Karkera]
>hi.. can you point out to me some examples of setting the namespace using
>the PythonInterpreter(Pydict ) constructor ?
Do you mean binding a name in the PythonInterpreter namespace to a
value? You can use the PythonInterpreter.set() methods for that.
>I cant seem to find any.
>Also, can you point out the mechanism by which jython, (when embedded and
>called from a java app) finds and loads its java classes ?
Not in just a few words <wink>.
Generally java classes are loaded with the classloader that loaded
jython (except for java classes found on sys.path, but I will ignore
that for now).
Assuming that your classpath is setup correctly, that means that code
like:
import java
java.lang.Class.forName("name.of.my.javaclass")
will work in 9 out of 10 cases. If it doesn't return the expected java
class, it is a problem with your classpath setup or your classloaders.
An entirely different issue is the detection of java *packages*. Jython
inspect all the directories and .jar files it can find in order to
decide whether a name (say "javax") is in fact a java package. If some
classes gets loaded by a custom classloader, Jython will be unable to
find the actual classes and thus are unable to find all the package
names used by the java classes. As a result, the import statement can
not find the java packages and java classes.
The org.python.util.PyServlet contains two examples on how you can
convince jython into inspecting other locations for java packages
(WEB-INF/lib and WEB-INF/classes).
>I want some
>java classes to be loaded by default when jython starts up, rather than
>doing "import foo from bar" in the .py scripts. Is there an API to do this
PythonInterpreter interp = new PythonInterpreter();
interp.set("foo", Class.forName("bar.foo"));
regards,
finn
|
|
From: Steve A. <aul...@uc...> - 2001-03-06 18:46:21
|
Hi Mats, Don Coleman pointed out that my CLASSPATH was missing a very import entry: the '.' As a result, jython-20 was not in my CLASSPATH. His suggestion to " set CLASSPATH=.;%CLASSPATH% followed by java jython-20 from the directory where jython-20 is located " solved my problem. Apparently I had fixed this on every machine but the one I was currently working on. Thanks, Steve Mats Wichmann wrote: > > At 11:07 AM 03/06/2001 -0700, Steve Aulenbach wrote: > >Hi, > > > >I am just getting strated so the problem may very well be something I am > >doing but I am unable to install jython on my NT box (4.0 SP6a). I am > >appending the error message below. > > > >D:\jython>java jython-20 > >Exception in thread "main" java.lang.NoClassDefFoundError: jython-20 > > > >D:\jython>java -version > >java version "1.3.0" > >Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) > >Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) > > > >Is Jython compatable with JDK 1.3? If so, my current CLASSPATH is > >D:\jdk1.3\bin;D:\vtk\java;D:\vtk\java\vtk.jar;D:\jython > > This specific install has worked for me in the past. > I've since upgraded (?) to Win2000 SP1 on both of my > Windows boxes so I can't cross-check anything for you, > but yes, "Jython is compatible with JDK 1.3" on > NT4 SP6a. > > Mats |
|
From: Mats W. <ma...@la...> - 2001-03-06 18:28:16
|
At 11:07 AM 03/06/2001 -0700, Steve Aulenbach wrote: >Hi, > >I am just getting strated so the problem may very well be something I am >doing but I am unable to install jython on my NT box (4.0 SP6a). I am >appending the error message below. > >D:\jython>java jython-20 >Exception in thread "main" java.lang.NoClassDefFoundError: jython-20 > >D:\jython>java -version >java version "1.3.0" >Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C) >Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode) > >Is Jython compatable with JDK 1.3? If so, my current CLASSPATH is >D:\jdk1.3\bin;D:\vtk\java;D:\vtk\java\vtk.jar;D:\jython This specific install has worked for me in the past. I've since upgraded (?) to Win2000 SP1 on both of my Windows boxes so I can't cross-check anything for you, but yes, "Jython is compatible with JDK 1.3" on NT4 SP6a. Mats |
|
From: Steve A. <aul...@uc...> - 2001-03-06 18:05:04
|
Hi,
I am just getting strated so the problem may very well be something I am
doing but I am unable to install jython on my NT box (4.0 SP6a). I am
appending the error message below.
D:\jython>java jython-20
Exception in thread "main" java.lang.NoClassDefFoundError: jython-20
D:\jython>java -version
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
Is Jython compatable with JDK 1.3? If so, my current CLASSPATH is
D:\jdk1.3\bin;D:\vtk\java;D:\vtk\java\vtk.jar;D:\jython
I unzipped the class file manually and shall try to create the startup
scripts by hand per the installation directions later today. Any help
and/or suggestions would be greatly appreciated. By the way the unzipped
directory structure is
Directory of D:\jython
03/06/01 10:49a <DIR> .
03/06/01 10:49a <DIR> ..
01/17/01 05:57p 1,523 ACKNOWLEDGMENTS
03/06/01 10:48a <DIR> Demo
03/06/01 10:48a <DIR> Doc
03/06/01 10:48a <DIR> images
03/06/01 10:48a <DIR> installer
01/17/01 05:58p 48,767 installer.filelist
01/17/01 05:57p 1,765 installer.properties
03/06/01 10:46a 1,704,876 jython-20.class
01/17/01 05:57p 596,561 jython.jar
03/06/01 10:46a 1,704,876 jython.zip
03/06/01 10:48a <DIR> Lib
01/17/01 05:57p 7,036 LICENSE.txt
01/17/01 05:57p 12,683 NEWS
03/06/01 10:48a <DIR> org
01/17/01 05:57p 1,389 README.txt
01/17/01 05:57p 3,510 registry
03/06/01 10:48a <DIR> Tools
01/17/01 05:57p 6,730 Uninstall.class
20 File(s) 4,089,716 bytes
Thanks,
Steve Aulenbach
|