|
From: brian z. <bz...@zi...> - 2001-02-27 06:23:30
|
The method Py.java2py does not support all clases and is closed to the end user. I would like to add functionality for classes such as BigDecimal to have Python wrappers, but don't want to endlessly patch the core. Has there been any effort to make this a bit more extensible? I wrote a patch for JPython (since lost when I switched jobs) that allowed me to use a properties file to map a Java class to a Python wrapper. This allowed me to wrap a Money object and to have it perform all the magic methods. I would be willingly to write the patch again since I would like some of this functionality but didn't want to work on something that perhaps someone has already started. If no one has started, are there any ideas floating around, such as adding it to the registry the way the modules are loaded by first looking at "python.modules.builtin". Finally, if we do add such functionality, should we have as the ant project does an optional jar which contains Python-wrapped Java objects, for example PySession and PyRequest, that would be outside of the core? thanks, brian |