[Python-ideas] Decorators for variables

Matthias welp boekewurm at gmail.com
Fri Apr 1 13:49:41 EDT 2016


> > tldr
> Check out how Django dealt with this. And SQLAlchemy
> Do their solutions satisfy

The thing I'm missing in those solutions is how it isn't chainable. If I
would want something that uses access logging (like what Django and
SQLAlchemy are doing), and some 'mixin' for that variable to prevent cycle
protection, then that would be hard. The only other way is using function
composition, and that can lead to statements that are too long to read
comfortably.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160401/deb794d9/attachment.html>


More information about the Python-ideas mailing list