← Back to team overview

maas-devel team mailing list archive

Re: idempotent()

 

On Tuesday 18 Feb 2014 08:49:17 Gavin Panella wrote:
> Even though I was the one who dreamt it up, I have no special love for
> the idempotent() decorator, and it's always felt imperfect. Can we
> come up with a compelling improvement that better conveys semantics
> over mechanics?

If it's all in the name, what about "mutates".  So:

@operation(mutates=False)
def foo(....)


Follow ups

References