From: Byron <bv...@ba...> - 2007-10-19 15:35:36
|
Hasan Diwan wrote: > I'd completed a preliminary implementation of java.util.Map for > org.python.core.PyDictionary for the exact reason you specified a > few months back. The only thing missing is that I haven't figured > out how to implement the entrySet() [1] method. I'll put up a > blogpost with the code contained therein tonight at > http://blog.prolificprogrammer.com -- please leave a comment there > as I get too much email and may miss yours. Seems like for the entrySet method one could just return a wrapper Set object around the Set object returned by the underlying Map object of PyDictionary (currently a Hashtable). The Wrapper interface methods would convert Py.None objects to null. If your patch gets included I'll add another patch that provides this functionality. |