[Python-ideas] Decorators for variables

Michael Selik mike at selik.org
Fri Apr 1 13:32:57 EDT 2016

On Fri, Apr 1, 2016 at 10:18 AM Matthias welp <boekewurm at gmail.com> wrote:

> tldr: Using three method declarations or chaining method calls is ugly,
> why not allow variables and attributes to be decorated too?

Focusing on attributes, not variables in general. Check out how Django
dealt with this (
https://docs.djangoproject.com/en/1.9/topics/db/models/#quick-example). And
SQLAlchemy (http://flask-sqlalchemy.pocoo.org/2.1/models/).

Do their solutions satisfy?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160401/2f81e156/attachment.html>

More information about the Python-ideas mailing list