scyjava
scyjava copied to clipboard
Allow @constant to apply constants to other modules
I am finding myself duplicating the constant
function to our other python components. This is WET.
It would be cool if, in imglyb, we could write
@scyjava.constant
def some_constant():
return "the constant"
And then access it with imglyb.some_constant
.
This may be of help: https://mail.python.org/pipermail/python-dev/2008-January/076194.html