[Python-ideas] Assignment decorators (Re: The Descriptor Protocol...)
Greg Ewing
greg.ewing at canterbury.ac.nz
Fri Mar 4 07:59:04 CET 2011
Guido van Rossum wrote:
> I think I'd prefer the one-liner-with-string-literal over the
> two-liner-with-decorator. Though I don't know if these frequently
> occur in bunches.
Yes, they do, which is why I'd prefer a one-line solution as well.
Thinking about that, I've realised something else. The docstrings
often take up most of a line, so it's galling to have to spend
horizontal space on repeating the name.
--
Greg
More information about the Python-ideas
mailing list