From: Jim A. <ji...@tr...> - 2002-09-03 06:58:40
|
Samuele Pedroni wrote: >public static org.python.core.PyString __doc__foo = ... ; > >I think a PyString is required because is a stronger marker that __doc__foo is >not a field with a __doc__* name per chance. >OTOH it means that the class to be usable needs jython.jar around. > Ahh; I didn't know this was available; it would be nice, but from my testing it looks like the Jython interpreter needs to be initialized too ? That is really too much to ask of someone just using, for example, my 'Strings' library. So for now I will go back to my old method of wrapping every java function with a python function just to get the __doc__ for Jython users. > >Maybe in the future we should be less paranoid and accept just a String. > This would work better for me; the multiple-double-underscores seem like enough 'paranoia' for me .. ;^) But thanks for the info, it makes sense [and gives me a clue to 'hacking' up my version if I get tired of wrapping functions .. 8^) ] - Jim |