Issue1361317

classification
Title: PyProperty fixes
Type: Severity: normal
Components: None Versions:
Milestone:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: fwierzbicki Nosy List: fwierzbicki, tibu
Priority: normal Keywords: patch

Created on 2005-11-19.12:45:50 by tibu, last changed 2006-06-06.19:31:34 by fwierzbicki.

Files
File name Uploaded Description Edit Remove
properties_patch.zip tibu, 2005-11-19.12:45:50
Messages
msg2475 (view) Author: Carlos Quiroz (tibu) Date: 2005-11-19.12:45:50
Hi

Here is a patch for PyProperty.java. It fixes it so
that it passes the test in test_descr.py/properties()
as for Python 2.3.
The following issues are solved:

- Setting a property via __set__ was failing
- Attempts to set __doc__, fget, fset and fdel should
throw a TypeError("readonly") exceptions

Additionally a patch for inspect.py is included

Carlos Quiroz
msg2476 (view) Author: Frank Wierzbicki (fwierzbicki) Date: 2006-06-06.19:31:34
Logged In: YES 
user_id=193969

I've translated this fix into the templating code
(sandbox/jt/property.expose with a couple of small fixes. 
For now I've included the stub that throw readonly
exceptions directly in PyProperty.  The comment that it
should probably be moved is retained.
History
Date User Action Args
2005-11-19 12:45:50tibucreate