Closed MichaelWedel closed 7 years ago
@MichaelWedel Declaring a property without a setter does not require author to set the read_only=True
argument. Is that something we should sanitise?
Setting the read_only
flag gives a nice output at runtime
Second-Int: Driver rejects value 1
Failing to do so seems to give garbage
@MichaelWedel. Other than that I think the changes are good to go. 👍 For ensuring the examples got updates.
I see what you mean. This behavior is quite old I think, but it's fixed for getter/setter methods, where this happens automatically (so manual read_only=True
is not required). It should be possible to do the same for properties. I'll look into it quickly.
This fixes #211.
With these changes it has been made easier to expose getter/setter method pairs as PVs. Free functions and other callables can be used as well, allowing for the same functionality as
Cmd
/Var
instream
.