| CODENOTIFIER | HelpYou are not signed inSign in |
Project: Jython
Revision: 5232
Author: pjenvey
Date: 21 Aug 2008 19:59:46
Changes:document TypeError vs AttributeError here
Files:| ... | ...@@ -829,6 +829,9 @@ | |
| 829 | 829 | } |
| 830 | 830 | |
| 831 | 831 | public void readonlyAttributeError(String name) { |
| 832 | // XXX: Should be an AttributeError but CPython throws TypeError for read only | |
| 833 | // member descriptors (in structmember.c::PyMember_SetOne), which is expected by a | |
| 834 | // few tests. fixed in py3k: http://bugs.python.org/issue1687163 | |
| 832 | 835 | throw Py.TypeError("readonly attribute"); |
| 833 | 836 | } |
| 834 | 837 |