I'm sorry if this is a known limitation, but the following doesn't work with IronPython 0.9.3:<br>
<br>
class MyClass:<br>
def __init__(self, testValue):<br>
self.testValue = testValue<br>
<br>
def _getValue(self):
<br>
return self.testValue<br>
value = property(_getValue, doc="This is documentation")<br>
<br>
obj = MyClass("Hello!")<br>
print obj.value<br>
<br>
It generates the following exception:<br>
<br>
Traceback (most recent call last):<br>
at __main__.Initialize() in C:\IronPython\test.py:line 1<br>
at __main__.MyClass$maker0() in C:\IronPython\test.py:line 7<br>
TypeError: can't set arbitrary attributes on built-in type property
<br>
<br>
I just thought I'd point it out.<br>
<br>
(In addition, running this in IronPythonConsole.exe 0.9.4 gives me an
unhandled exception, as opposed to the nice exception-with-stack-trace
that I used to get, and expect from CPython development. Is this on
purpose?)<br>
<br>
thanks,<br>
<span>john</span>