[Maas-devel] idempotent()

Julian Edwards julian.edwards at canonical.com
Tue Feb 18 09:25:54 UTC 2014


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(....)




More information about the Maas-devel mailing list