From: <fwi...@us...> - 2008-12-21 23:25:41
|
Revision: 5784 http://jython.svn.sourceforge.net/jython/?rev=5784&view=rev Author: fwierzbicki Date: 2008-12-21 23:25:39 +0000 (Sun, 21 Dec 2008) Log Message: ----------- Added fastGetDoc to expose __doc__ on builtin classes, so, for example help(str.title) Will get the __doc__ back for str.title. Modified Paths: -------------- trunk/jython/src/org/python/core/PyMethodDescr.java Modified: trunk/jython/src/org/python/core/PyMethodDescr.java =================================================================== --- trunk/jython/src/org/python/core/PyMethodDescr.java 2008-12-21 22:28:30 UTC (rev 5783) +++ trunk/jython/src/org/python/core/PyMethodDescr.java 2008-12-21 23:25:39 UTC (rev 5784) @@ -20,6 +20,11 @@ meth.setInfo(this); } + @ExposedGet(name = "__doc__") + public String fastGetDoc() { + return meth.fastGetDoc(); + } + public int getMaxargs() { return maxargs; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |