[Python-ideas] setting function properties with a decorator syntax
Fred Drake
fdrake at acm.org
Fri Mar 19 03:33:40 CET 2010
On Thu, Mar 18, 2010 at 10:28 PM, David Stanek <dstanek at dstanek.com> wrote:
> I don't remember seeing much code using function properties. I would
> probably just create a new decorator for this.
I've not either, but if we determine that this is a useful facility to
include in the standard library, I'd be in favor of something like
this:
@setattr(printable=True)
def f():
"""Example function"""
-Fred
--
Fred L. Drake, Jr. <fdrake at gmail.com>
"Chaos is the score upon which reality is written." --Henry Miller
More information about the Python-ideas
mailing list