<div dir="ltr"><div><div><div>> Function decorators<br><br></div>There are decorators that return a callable that not calls the function that was given as an argument, but also do some other things, and therefore change the behaviour of that function.<br><br></div>
> So instead of<br>> <br>> a = Char(length=10, value='empty')<br>> <br>
> you want<br>
> <br>
> @Char(length=10)<br>
> a = 'empty'<br>
> <br>
> ?<br><br></div>If possible, yes. So that there is a standardized way to access changing variables, or to put limits on the content of the variable, similar to the @accepts and @produces decorators that are seen here (<a href="https://wiki.python.org/moin/PythonDecoratorLibrary#Type_Enforcement_.28accepts.2Freturns.29">https://wiki.python.org/moin/PythonDecoratorLibrary#Type_Enforcement_.28accepts.2Freturns.29</a>)<br>
</div>