Update of /cvsroot/jython/jython/org/python/core
In directory usw-pr-cvs1:/tmp/cvs-serv19349
Modified Files:
PyObject.java
Log Message:
safeRepr(): Make it public and use PyIgnoreMethodTag to hide safeRepr
from jython.
Index: PyObject.java
===================================================================
RCS file: /cvsroot/jython/jython/org/python/core/PyObject.java,v
retrieving revision 2.24
retrieving revision 2.25
diff -C2 -d -r2.24 -r2.25
*** PyObject.java 2001/07/18 15:53:56 2.24
--- PyObject.java 2001/08/19 15:24:56 2.25
***************
*** 105,113 ****
}
! // TBD: safeRepr() is protected so that it's not accessible from
! // Python. This is bogus; arbitrary Java code should be able to get
! // safeRepr but we still want to hide it from Python. There should be
! // another way to hide Java methods from Python.
! protected String safeRepr() {
if (__class__ == null) {
return "unknown object";
--- 105,109 ----
}
! public String safeRepr() throws PyIgnoreMethodTag {
if (__class__ == null) {
return "unknown object";
|