Issue1009477
Created on 2004-08-15.09:39:54 by coder111, last changed 2008-06-08.03:01:07 by pjenvey.
msg3014 (view) |
Author: Coder (coder111) |
Date: 2004-08-15.09:39:54 |
|
Hi, i tried calling some java methods from jython
passing python dictionary and list as parameters. These
two are implemented by PyDictionary and PyList classes
which get passed to java ok. But then I looked at
jython source and was disappointed to see that python
lists don't implement java.util.List interface and
python dictionaries don't implement java.util.Map and
so on, and this makes them useless in java. I could
call their original methods from java, but then I'd
have to tie my java application to internal jython classes.
Would it be possible to make PyDictionary implement
java.util.Map and other python collections to implement
appropriate java.util.* interfaces, so that they could
be passed as parameters to java methods and used there?
|
msg3246 (view) |
Author: Philip Jenvey (pjenvey) |
Date: 2008-06-08.03:01:01 |
|
on trunk, PySequenceList (superclass of list, tuple) now implements List,
PyDictionary implements ConcurrentMap, and BaseSet implements Set
I think that covers it? closing out
|
|
Date |
User |
Action |
Args |
2008-06-08 03:01:07 | pjenvey | set | status: open -> closed resolution: fixed messages:
+ msg3246 nosy:
+ pjenvey |
2004-08-15 09:39:54 | coder111 | create | |
|