From: <pj...@us...> - 2008-08-21 23:59:49
|
Revision: 5232 http://jython.svn.sourceforge.net/jython/?rev=5232&view=rev Author: pjenvey Date: 2008-08-21 23:59:46 +0000 (Thu, 21 Aug 2008) Log Message: ----------- document TypeError vs AttributeError here Modified Paths: -------------- trunk/jython/src/org/python/core/PyObject.java Modified: trunk/jython/src/org/python/core/PyObject.java =================================================================== --- trunk/jython/src/org/python/core/PyObject.java 2008-08-21 19:44:29 UTC (rev 5231) +++ trunk/jython/src/org/python/core/PyObject.java 2008-08-21 23:59:46 UTC (rev 5232) @@ -829,6 +829,9 @@ } public void readonlyAttributeError(String name) { + // XXX: Should be an AttributeError but CPython throws TypeError for read only + // member descriptors (in structmember.c::PyMember_SetOne), which is expected by a + // few tests. fixed in py3k: http://bugs.python.org/issue1687163 throw Py.TypeError("readonly attribute"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |