[Openstack] Proposal to limit decorator usage

Kevin L. Mitchell kevin.mitchell at rackspace.com
Tue Jan 17 16:31:54 UTC 2012


On Tue, 2012-01-17 at 11:09 -0500, Lorin Hochstein wrote:

> Decorators
> ----------
> A function or method should not have more than two decorators applied to it
> where it is defined.

I'll point out that current discussion on that merge thread is favoring
a different idea altogether: restrict decorators to only those that "do
not mess with the conceptual interface of a function."  Mark provides
two examples of decorators which would not fit that restriction, and
Naveed objects to one of them because he feels that validation of input
arguments is a legitimate use of decorators.
-- 
Kevin L. Mitchell <kevin.mitchell at rackspace.com>





More information about the Openstack mailing list