--- /org/python/core/PyType.java Tue Dec 5 23:58:32 2006 +++ PyType.java Fri Jan 19 09:55:42 2007 @@ -1296,6 +1296,21 @@ public PyObject getDict() { // xxx return dict-proxy return dict; } + + /** + * See type_get_doc in python's typeobject implementation + */ + public PyObject getDoc(){ + PyObject __doc__ = super.getDoc(); + if(__doc__ != null){ + PyType doctype = __doc__.getType(); + PyObject getexists = doctype.lookup("__get__"); + if(getexists != null) + return __doc__.__get__(null, this); + } + return __doc__; + } + public Object __tojava__(Class c) { if (underlying_class!= null &&(